ROCKINDANO Posted February 15, 2010 Share Posted February 15, 2010 Hello all, I am working on a online request form that requires some fields to be filled. I understand that the mail() only takes 5 params. but since this is a online form, is there a way to include date of request, name, email, phone, location, service required, other, location details, location accessibility, and pole number? or can i combine a number of parameters into one var.? can someone help? Link to comment https://forums.phpfreaks.com/topic/192148-using-mail-to-submit-an-online-form/ Share on other sites More sharing options...
Splash Posted February 15, 2010 Share Posted February 15, 2010 Hi Rockindano You'll need to add all your variables into the message parameter. i.e. $message = $name."\n"; $message .= $email."\n"; $message .= $phone."\n"; etc Link to comment https://forums.phpfreaks.com/topic/192148-using-mail-to-submit-an-online-form/#findComment-1012635 Share on other sites More sharing options...
ROCKINDANO Posted February 15, 2010 Author Share Posted February 15, 2010 is there a way to use the strip_tags() fun. and the $_REQUEST['parameter']. below is example of code. $message = strip_tags($_REQUEST['feedback']); Link to comment https://forums.phpfreaks.com/topic/192148-using-mail-to-submit-an-online-form/#findComment-1012637 Share on other sites More sharing options...
Splash Posted February 15, 2010 Share Posted February 15, 2010 Also there are a number of security issues involved when mailing form data. The following link talks through these and tells you how to protect against them. http://www.velvetblues.com/web-development-blog/how-to-write-a-php-contact-form/ Link to comment https://forums.phpfreaks.com/topic/192148-using-mail-to-submit-an-online-form/#findComment-1012639 Share on other sites More sharing options...
ROCKINDANO Posted February 15, 2010 Author Share Posted February 15, 2010 Well Thank you. Link to comment https://forums.phpfreaks.com/topic/192148-using-mail-to-submit-an-online-form/#findComment-1012643 Share on other sites More sharing options...
Splash Posted February 15, 2010 Share Posted February 15, 2010 No problem Link to comment https://forums.phpfreaks.com/topic/192148-using-mail-to-submit-an-online-form/#findComment-1012646 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.