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? Quote 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 Quote 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']); Quote 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/ Quote 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. Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.