Results 1 to 2 of 2

Thread: URL format for entering prefilled info in a form

  1. #1
    Join Date
    Mar 2011

    Exclamation URL format for entering prefilled info in a form

    Take a look at this page.


    I am trying to create a URL that prefills certain fields on this form. I have tried the tricks I know.

    I would appreciate any help you can give.


  2. #2
    Join Date
    Jan 2011
    I'm not sure if this is what you mean, but if you're trying to pass values from a url to a form using php, you could do it like this. After the index.php part of your url add the name/value pairs like so:


    Then for your form you could do this:
    PHP Code:
    <input type="text" name="first_name" value="<?php if(isset($_GET['first_name'])) echo $_GET['first_name'?>" />
    <input type="text" name="last_name" value="<?php if(isset($_GET['last_name'])) echo $_GET['last_name'?>" />

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles