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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Emailing Variables

Status
Not open for further replies.

Rhiannon

Technical User
Feb 8, 2002
55
US
This is the only way I could get variables from a form to pass down through about 7 pages:

<input type=&quot;hidden&quot; name=&quot;company&quot; value=&quot;<?php echo $_POST[&quot;company&quot;] ?>&quot;>
<input type=&quot;hidden&quot; name=&quot;email&quot; value=&quot;<?php echo $_POST[&quot;email&quot;] ?>&quot;>

I have 39 in total. How do I convert these into $variables so I can include them in the email?

I know this is probably a stupid question but I've just started working with php. I know how to submit the form and the email is going through but am stuck with this part of it.

It's late and I'm exhausted so if this doesn't make sense please bare with me.

Thanks for your help.
Rhiannon
 
u shd get it on script as $_POST['company'],$_POST['email'] etc

to send the email do something like..
$msg = &quot;company:&quot;.$_POST['email'].&quot;,Email:&quot;.$_POST['email']..

mail($to,$subject,$msg,$headers) ;


spookie

--------------------------------------------------------------------------
I never set a goal because u never know whats going to happen tommorow.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top