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

mail() question....

Status
Not open for further replies.

ilovephp

Programmer
Feb 14, 2004
1
SA
Could anyone plz tell me why the following script didn't work?

$content.=&quot;<form action=method=post>&quot;;
.........
html code goes here
.....
<input type=submit name=submit>
</form>
perform mail() routine......

When I opened my mailbox and clicked on the &quot;submit&quot; button, it brought me to the cgi server path itself by default something like this:
And vice versa it just worked fine when I used <a href=.....> instead. Why?Does mail() doesn't support the form attribute?Thankxxxxxxxxxxx
 
Ummmmm... it looks to me like you may be confusing the use of php code... the mail function doesn't support any attributes - it just sends and email based on the parameters you give it.

Can you post all the relevant code, excatly as you are using it? -gerrygerry
Go To
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top