Jump to content

A Quick Question about a Form


Greg_elite

Recommended Posts

Can I replace the set message text for $body and $subject with $_POST['message']; $_POST['subject']; so I can get a users input from a html form via php as the action.  Instead of the set text in the script.

As seen http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm

Link to comment
https://forums.phpfreaks.com/topic/222958-a-quick-question-about-a-form/
Share on other sites

Sure.

 

Beware of people putting malicious stuff in the body - they might try using a

While you're at it, try to limit the length of the subject line. A hundred or so characters ought to be enough.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.