blue_eye Posted April 22, 2008 Share Posted April 22, 2008 I've multiple forms on single page. There are checkboxes for the user to select from. when user clicks on any checkbox, its appropriate form display. User can click on multiple checkboxes and they show relevant form. How can i send this form/forms information to my email address. Running version of above scenario can be view here: http://www.bushrashahid.com/inquiries.php Link to comment https://forums.phpfreaks.com/topic/102276-multiple-forms-on-single-page/ Share on other sites More sharing options...
mrdamien Posted April 22, 2008 Share Posted April 22, 2008 You can only have 1 form submitted at a time. To get the value of a checkbox just use the $_POST['checkboxname']. Compose all your $_POST information into a message ie: $message = "Name: " . $_POST['name'] . "\r\n" . "Email: " . $_POST['email'] . "\r\n"; Then use mail() to email yourself. Link to comment https://forums.phpfreaks.com/topic/102276-multiple-forms-on-single-page/#findComment-523694 Share on other sites More sharing options...
blue_eye Posted April 22, 2008 Author Share Posted April 22, 2008 should i need any conditional statement bcoz there are multiple forms. User can check a single checkbox or he has the option to select multiple options. I'm not a programmer, i've just started PHP so please if anybody can provide some sort of code so i've clear understanding - Thank you. Link to comment https://forums.phpfreaks.com/topic/102276-multiple-forms-on-single-page/#findComment-523701 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.