[html/js]custom search engine!

Results 1 to 4 of 4
  1. #1
    Member redpenguin90 is offline
    MemberRank
    Feb 2008 Join Date
    onmouseover=alert('haha')Location
    96Posts

    [html/js]custom search engine!

    Free Web Hosting with PHP, MySQL and cPanel
    there is only one problem though.
    i want to make a admin panel, but if i use javascript the password is public.
    please help me T_T


  2. #2
    Account Upgraded | Title Enabled! passie is offline
    MemberRank
    Jan 2005 Join Date
    The NetherlandsLocation
    710Posts

    Re: [html/js]custom search engine!

    use simple script ? like :
    admin.html
    Code:
    <html>
    <head>
    <title></title>
    </head>
    
    <body>
    <form method="post" action="login.php">
       <p>Username 
         <input name="username" type="text" id="username" />
       </p>
       <p>Passoword
         <input name="password" type="text" id="password" />
       </p>
            <input type="submit" name="Submit" value="Submit" />
    </form>
    </body>
    </html>
    login .php
    PHP Code:
    <?php
    if($_POST['username'] == 'username' && $_POST['password'] == 'password'){
    echo 
    "your page here !";
    } elseif(!
    $_POST['username'] && !$_POST['password']){
    echo 
    "you didnt fill all fields in !";
    } else {
    echo 
    'you dont have right to be here ! <a href="index.shtml">Click here to go back.</a>';
    }
    ?>
    Last edited by passie; 12-04-08 at 11:27 PM.

  3. #3
    Account Upgraded | Title Enabled! quicksilver4647 is offline
    MemberRank
    Jun 2007 Join Date
    DenmarkLocation
    422Posts

    Re: [html/js]custom search engine!

    Umm i am just coding one in VB.NET much easier :P it's like internet explorer that way.

  4. #4
    Account Upgraded | Title Enabled! CodeinCody is offline
    MemberRank
    Feb 2008 Join Date
    In a houseLocation
    695Posts

    Re: [html/js]custom search engine!

    idk why some people make sites that look like they took them 20 mins to 30mins. why dont you put the time into making it look good instead of just offering your features? btw. a navi at the Bottom -.- if i were to rate this 3/10



Advertisement