Form Help Again

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Here is my form.

<form action=" " method="post"
<input class="sidebar" value="name" name="user" >
<input class="sidebar" value="email" name="email"  > <TEXTAREA
class=sidebar name=content rows=40 cols=30></TEXTAREA>
<input class="button_sidebar" value="Send" type="submit" >
<input class="button_sidebar" value="Reset" type="reset" >

I then have a PHP file called FormToEmail.php

It looks like this:

$my_email = "";

And some other garbage at the bottom. For some reason my form goes to
the FormToEmail.php page, but I never get any emails with the data.  

Can anyone help me with this.

- John.

Re: Form Help Again

Quoted text here. Click to load it

If you wish to send mail, you have to actually *WRITE CODE* to *SEND
THE MAIL*.  Often this is a call to the PHP mail() function, or
invoking classes to send mail.  All the above does is set an unused

Some security tips:

Never let the PHP use user-supplied or form-supplied values (stuff
from $_GET[], $_POST[], etc.) for mail headers (e.g. Subject:, To:,
From:, etc.) without first ensuring that the value does NOT contain
a carriage return or line feed.  Never let the user or form specify
the destination of the email.

                        Gordon L. Burditt

Re: Form Help Again

Carved in mystic runes upon the very living rock, the last words of  
Hoopster of comp.lang.php make plain:

Quoted text here. Click to load it

Yep - try Phorm.

Alan Little
Phorm PHP Form Processor

Site Timeline