Main Area and Open Discussion > General Software Discussion
How to create a web FORM, with several questions, and get back email replies?
OptimalDesigns:
I've created a webpage with a Form that allows a user to select the class subjects they would be interested in a Zoom class. How to have user do a submit and email me at [email protected] with subjects being 'class1', 'class2', 'class3', etc. for the various classes?
--- ---<form method="post" action="subscriberform.php" >
<fieldset>
<legend>Choose your <b>Class</b> interests</legend>
<div class="row">
<div class="column left">
<input type="checkbox" id="class1" name="interest" value="class1">
<label for="class1">Oil Refinery Optimization</label>
</div>
<div class="column right">
<span>Crude oil comes in to an Oil Refinery and ... in processing oil?</span>
</div>
</div>
ooo ... 'n' various class subjects; how to email to each subject a user selects via checkbox?
<div class="row">
<div class="column left">
<input type="checkbox" id="class'n'" name="interest" value="class'n'">
<label for="class'n'">Calculus-level Coding</label>
</div>
<div class="column right">
<span>Calculus-level Coding and ... ?</span>
</div>
</div>
<div class="row">
<button type="submit">Submit form</button>
</div>
</fieldset>
</form>
Emails rec'd could then be sorted by date or subject and sent replies when their class would meet. Ideas?
Deozaan:
Have you considered using Google Forms?
OptimalDesigns:
Tried it ... not enough form options.
Deozaan:
In PHP you can use the mail function:
--- Code: PHP ---mail("[email protected]", $subject, $message);
If you need more control you can also manually set the email headers. More details here: https://www.w3schools.com/php/func_mail_mail.asp
wraith808:
If you're going to be doing this often, MachForm might be worth the investment for you. I got it years ago, and still use it.
https://www.machform.com/
Navigation
[0] Message Index
[#] Next page
Go to full version