Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

php form question - capture viewing page, etc...

Status
Not open for further replies.
Feb 2, 2005
54
US
i'm working on a site simplythebreast.org which is an organization concerned with women's health and i have a simply input text box and button for subscribing to a listserv. you can see it here


i know how to capture the input in the text box and to send multiple emails (one to the admin, one to the email address for confirmation) but what i don't know how to do is to display what i want to display. what i would like to do is to keep everything on the page the same except for where the form is and replace the input text box and button with text that states "thank you for your interest in simply the breast". so i think i need to capture the page they are currently viewing and switch the form area....

any thoughts? anyone done something like this before?
 
I maybe missing something, but i see no form tags on your page. So I'm not sure how you are submitting the form.

But to answer the question, you could submit the form to the same page. This means you would place something like following where the form goes:

Code:
if(isset($_REQUEST['email_sign_up'])
{
   echo "thank you for your interest in simply the breast."
}else{
   echo '<input type="text" name="email_sign_up">
         <input name="signup" type="image" value="signup" src="images/signup.gif" height="15" border="0">' 
}
 
ok...i made some changes and things are working but i'd like to see if i can't capture the src of the <iframe> and then put that same src into the <ifram> on the eletter.php page that displays after you click the sign up button.

any idea? i'm sure this is probably pretty simple but my brain already seems to be on vacation :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top