Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2004
    Location
    Notts, UK
    Posts
    44

    Simple PHP Script

    Hi again, sorry for all my posts latley, finished college now i have nothing to do

    I need a really simple php script: Basically on one page is a text field, I want people to be able to enter thier email in this one field and click "book" it will then forward to another page with a whole form to fill in but the email box is already filled in from the previous entry.

    Perhaps this image can help my explaination:

    http://img114.echo.cx/img114/5705/phpscript2mb.gif

    Hope someone can help,

    Thanks
    Anthony.
    -

  2. #2
    did you find in hotscripts ?

    www.hotscripts.com
    http://www.empresasdehosting.com
    THE WEB HOSTING INDEX IN SPANISH
    http://www.empresasdehosting.net
    THE WEB HOSTING DIRECTORY IN SPANISH

  3. #3
    Join Date
    Aug 2004
    Location
    Notts, UK
    Posts
    44
    Its not really something i could find in Hotscripts.

    I'm sure a PHP whiz could show me how to do it in like 5 mins
    -

  4. #4
    Join Date
    Jun 2004
    Location
    Digital Texas
    Posts
    55
    PHP Code:
    if (!isset($email)) {
    // first form
         
    echo '<form>
    <input type="text" name="email">
    <input type="submit" value="book">
    </form>'
    ;
    } else {
     
    // next form
         
    echo '<form>
    <input type="text" value='
    .$email.'> // this will display your email field from before.
    <input type="text">
    <input type="text">
    <input type="text">
    <input type="text">
    <input type="submit" value="submit">
    </form>'
    ;

    Last edited by Nyture; 06-21-2005 at 03:49 PM.

  5. #5
    Join Date
    Jun 2005
    Location
    Houston, TX
    Posts
    396
    does anyone have any suggestions on where i could gain a pretty extensive understanding of this type of stuff? i've got to w3schools.com and a couple of others, but i still feel lost.

    i want to be able to create CMS systems for client sites as well as my own. it's irritating going through blogger or something like that just to update text.
    Eleven2 Web Hosting is helping the Red Cross
    Eleven2 Hosting - www.eleven2.com
    Help The Red Cross - www.redcross.org

Posting Permissions

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