112 users online (1 members and 111 guests)  

  Results 1 to 2 of 2


  1. Mandatory fields form    Forum: HTML Forum
    Replies: 0
  2. Required Form Fields    Forum: Javascript Forum
    Replies: 1
  3. The sum of two fields    Forum: Website Scripts Forum
    Replies: 4
  4. Dynamic form fields    Forum: Website Scripts Forum
    Replies: 1
  5. The sum of two fields    Forum: HTML Forum
    Replies: 1
  1. #1
    BJHOWARD's Avatar
    New User

    Join Date
    Aug 2002

    Pre Populatated Fields

    I am building website to sell books. When the customer click on the Buy now button on a certain book (ie Spiderman) I want to direct that buyer to a form that I have built. But I want the form to automatically populate the name of the book or image that the customer clicked on. Can you help me with the coding?

  2. #2
    QuietDean's Avatar

    Join Date
    Oct 2000
    Bournemouth, UK
    Hi there. Welcome to the forums!

    If you need to transfer data from one page to another, you have quite a few options. However, overall, you will probably need to learn a 'server-side language' to process the details.

    These include PHP, ASP, Perl/CGI and Jscript. I would recommend php ( www.php.net ) as it is easy to learn.

    An example piece of code, using php -

    PHP Code:
    <input type="text" name="ChosenItem" value="<? echo $_QUERY['iChoose']; ?>">
    This would take a querystring and populate the field with it. A query string is data passed along in the link like this -


    Hope that helps.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

Tags for this Thread