PDA

View Full Version : Need help on a project I am working on


xtremeathlonxp
10-31-2003, 12:40 AM
I am trying to figure out the php mail() function the following code will not work to e-mail the form results. Can anyone tell me what I have done wrong?
<form action="mail ("e-mail address","Hosting" "message")"; method="post" enctype="text/html" name="form1" target="_self">
<p>Username:
<input type="text" name="textfield">
</p>
<p>
Password:
<input type="password" name="textfield2">
</p>
<p>
E-Mail Address:
<input type="text" name="textfield3">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
<input name="Reset" type="reset" id="Reset" value="Reset">
</p>
</form></td>
</tr>

Sephiroth 9999
10-31-2003, 06:01 AM
Is it just me or is this part missing a comma operator? :)

form action="mail ("e-mail address","Hosting" "message")";

I don't get that part anyway, are you trying to incorporate PHP with HTML there? Because that's one strange HTML tag. ;) In other words, you can't add the mail() function into the top of the form. You'll gather all the form input first, then at the end just call the mail() function with all the apporopriate parameters.