Java Script or anythning else ?

Discussion in 'Programming' started by sagheer.rajper, Feb 22, 2012.

  1. #1
    Dear Expert,


    I have the website where the html web Forms are exist....... so i just want to once people fill the form . the next time the fields automatically filled out. because fields are same to all web forms.


    Please give me the script or any suggestion


    Thanks




    Sagheer
     
    sagheer.rajper, Feb 22, 2012 IP
  2. ker

    ker Peon

    Messages:
    97
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    0
    #2
    You can save the entry on serer and next time when you output html to people you suggest entry.
    <form action="form_action.asp">
      First name: <input type="text" name="fname" value="John" /><br />
      Last name: <input type="text" name="lname" value="Doe" /><br />
      <textarea rows="2" cols="20">
         At W3Schools you will find all the Web-building tutorials you need, from basic HTML to advanced XML, SQL, ASP, and PHP.  
      </textarea>
      <input type="submit" value="Submit form" />
    </form>
    HTML:
     
    ker, Feb 23, 2012 IP
  3. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #3
    @ker - He wants you to give him teh codez and that's not javascript so just do what he says!
     
    drhowarddrfine, Feb 23, 2012 IP
  4. sagheer.rajper

    sagheer.rajper Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    This is what i know.
    but i just want to people file the form and next time they don't need to fill... simply cookie .

    Sagheer
     
    sagheer.rajper, Feb 23, 2012 IP
  5. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #5
    Send a cookie with the data in the form once you've validated it. If the cookie exists, use the data in it to fill in the form. (That's the kind of thing cookies were invented for.)
     
    Rukbat, Feb 25, 2012 IP