Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

Leon Munir

@Leon Munir
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • help me please
    L Leon Munir

    :confused:I am new here.How else should I answer questions?

    JavaScript javascript php html database design

  • help me please
    L Leon Munir

    This is a community forum and I am here help and answer questions. :| Please refrain from posting such comments.:mad:

    JavaScript javascript php html database design

  • help me please
    L Leon Munir

    Here is the complete code without ajax functionality. You didn't mention in the question if you wanted to display result without loading the php page.The login.html could looks like this:

    </pre>
    <pre lang="Javascript">function validate(){
    if((f1.login.value == "") || (f1.password.value == ""))
    {
    alert("you must enter your name and password");
    return false;
    }
    else
    {
    return true;
    }
    }</pre>
    <pre lang="HTML">

    User Name
    Password

    The validate.php could look like this:

    Add a new student
    Remove a student";
    }
    else
    {
    // GO BACK link
    echo "GO BACK";
    // javascript displays message
    echo "alert(\"wrongpassword and/or login please try again\");";
    }
    }
    }
    ?>

    Hope it answers your question :)

    follow me on twitter @leon_developer

    JavaScript javascript php html database design
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups