Hello I am writing up a contact form that let's the user submit there details and then it sends an email to me. I have written up all the code for the form and the submit button.
<form action="my-investment/personal-message.html" method="POST" name="email_form_with_php" enctype="multipart/form-data">
<p><label for="name">First Name: </label> <input type="text" name="firstname" /> <br /> <label for="name">Last Name: </label> <input type="text" name="lastname" /><br /><label for="name">Address: </label> <input type="text" name="address" /><br /><label for="name">Country: </label> <input type="text" name="country" /><br /><strong>If not Australia</strong><br /><label for="name">Postal Address: </label> <input type="text" name="postaladdress" /><br /><label for="name">Contact Phone: </label> <input type="text" name="contactphone" /><br /><label for="email">Email Address: </label> <input type="text" name="email" /><br /><br /><label for="name">Your Location: </label> <input type="text" name="yourlocation" /><br /><strong>If not Australia</strong> <br /><br /> <label for="message">Reasons For Your Purchase:</label><br /> <textarea name="message" rows="4" cols="50"></textarea> <br /><br /><strong>If any Indicate your Solicitor details</strong><br /><br /><label for="name">Name: </label> <input type="text" name="solicitorname" /><br /><br /><label for="name">Address: </label> <input type="text" name="solicitoraddress" /><br /><br /><label for="name">Contact Person: </label> <input type="text" name="contactperson" /><br /><br /><label for="name">Direct Contact: </label> <input type="text" name="directcontact" /><br /><br /><strong>If any, Person below is managing my purchase</strong><br /><br /><label for="name">Name: </label> <input type="text" name="managingname" /><br /><br /><label for="name">Address: </label> <input type="text" name="managingaddress" /><br /><br /><label for="name">Contact Person: </label> <input type="text" name="managingcontactperson" /><br /><br /><label for="name">Direct Contact: </label> <input type="text" name="managingdirectcontact" /><br /><br />Please wire or direct deposit $1800AUD into the account below</p>
<p>BANK: AUSTRALIAN AND NEW ZEALAND BANK</p>
<p>BSB: 9999 9999</p>
<p>ACC: 123 456 768 999 678 989</p>
<p><span style="color: #ff0000;">Please note you must attach payment receipt or payment related information such as receipt number or other related information.</span></p>
<input id="agree" type="checkbox" name="checkbox" value="check" /> I have made payment.
<p> </p>
<p>Please attach your payment receipt below.</p>
<label for="uploaded_file">Add Attachment:</label> <input type="file" name="uploaded_file" /><br /><br /> <label for="message">Comments:</label><br /> <textarea name="comments" rows="4" cols="50"></textarea>
<p> </p>
<p><input type="submit" name="submit" value="Submit" /></p>
</form>
Sorry if the code is a bit of a mess. Can anyone tell me how to submit data through email and how I would code it. Haven't had much luck so far. Cheers.
Aucun commentaire:
Enregistrer un commentaire