Jump to content

Multiple Forms on Single Page


blue_eye

Recommended Posts

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

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.

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.

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.