View Full Version : been a while since php

06-25-2009, 04:13 AM
i've been working with CMS' for so long now - but i need to do a very small php function - wondering if ican get some help.

on index.php i have a input and a submit btn
on submit i would like to parse the email adress from the input into the input box on signup.php

basically so the user does not have to enter their email address twice to submit it.

any help muchly appreciated.

07-11-2009, 04:43 PM
if your using a normal html form object and it point to signup.php, you can use POST to grab it. Eg:

// signup.php
$email = $_POST['emailTextBox'];

// Then if you want to display this email in another html box on this page..
// Put it's value property as:

value = "<php echo $email; ?>"

Don't forget the '?' from the opening php tags in the value property. I took it out to keep the code highlighting. Hope that helps