form from one page to another

Discussion in 'PHP' started by caligrafx, Apr 27, 2010.

  1. #1
    I notice and was wondering how it is done when you have a field on one page "newsletter signups" and then you hit signup and then It takes you to another page with the their email in already and then they fill out the rest?

    This is something that I what to add to one of my sites! Any help would be great!

    Thanks,
    Adam
     
    caligrafx, Apr 27, 2010 IP
  2. nezZario

    nezZario Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Ok, it's pretty simple in php

    You need to scripts .. the first would have a <form action= .. to the php script #2
    in the first script if you have e.g. <input type="text" name="email">

    in the second script you would wnat something like:
    <input type="text" name="email" value="<?php echo $_REQUEST['email']; ?>">

    then it'll pass thru both php scripts

    let me know if you have any more problems
     
    nezZario, Apr 27, 2010 IP
  3. prasanthmj

    prasanthmj Member

    Messages:
    62
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    45
  4. caligrafx

    caligrafx Active Member

    Messages:
    137
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    83
    #4
    I have icontact.com and they will not send me a copy of the php file. Is there any other ways of going about doing this?

    Thanks,
    Adam
     
    caligrafx, Apr 27, 2010 IP
  5. FriendSwapMeet.com

    FriendSwapMeet.com Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    then they should have varibles already set up for you ask them what the varibles are...
     
    FriendSwapMeet.com, Apr 27, 2010 IP