[HELP] Making a form using PHP

Discussion in 'PHP' started by pratik, Oct 20, 2008.

  1. #1
    hi there,

    This is something I am working on now-a-days.

    I am making a form to be filled by people using there own logins...
    The form will need to have checking system at each text field. I guess its done using AJAX...

    The form will contain check boxes and other fields.. with options to add or hide field if a checkbox is checked or unchecked...

    Ones the form is filled and the user hits the submit button the data should go to MySQL server and be stored there...

    How can this be done.. i mean i have the form ready in HTML using Dreamweaver.. but how can i implement AJAX and database thing...

    Please help... ;)


    Regards,
    pratik
     
    pratik, Oct 20, 2008 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    do you know how to pass variables of the form using GET or POST?
    javascript id good in checking forms..
    if your really want to use ajax.. you need dynamic functions

    if your worrying about flooding your database by bots... they can override js... or security of your form
    try using captcha.
     
    bartolay13, Oct 20, 2008 IP
  3. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #3
    ajax on the other hand

    has client side (which is your form) and server side (which is the php)
    well its just like sending a data to your server side on every event running on the page..
    (onkeyup, onmouseover) the the server side automatically process the input send by the client side

    anyways heres some references on basic ajax
    http://www.w3schools.com
    its under the php module
     
    bartolay13, Oct 20, 2008 IP