Jump to content

Help with HTML email form


Wankness123

Recommended Posts

<form action='mailto:[email protected]' method='POST' enctype='text/html'>
<table>
<tr>
<td>Bobba Name:</td>
<td><input type='text'></td>
</tr>
<tr>
<td>Your Name:</td>
<td><input type='text'></td>
</tr>
<tr>
<td>Your Age:</td>
<td><input type='text'></td>
</tr>
<tr>
<td>Your Email:</td>
<td><input type='text'></td>
</tr>
<tr>
<td>Why you?:</td>
<td><input type='text'></td>
</tr>
</table>
<center><input type='submit' value='Submit'></center>
</form>

 

I tried this and it didnt work??

 

how can i make it work thanks.!

Link to comment
https://forums.phpfreaks.com/topic/254097-help-with-html-email-form/
Share on other sites

none of the text fields in your html script above have name attributes instead of just

 

<input type='text'>

 

try something like this

 

<input type='text' name='myname'>

 

although i dont know how it would work becuase you would need an address to send the mail so im not too sure

The way you are using will only show the input boxes and will not email them.

 

To create a "Click HERE to email me" use the following code:

 

Click <a href=mailto:[email protected]>here</a> to email me

 

The way you are using requires a bit of php on the side, but here is a outline on creating the HTML side of the form:

 

<form action="send_mail.php" method='POST' encrypt='text/html'>
<table>
<tr>
<td>Bobba Name:</td>
<td><input type="text" name="bobba_name"></td>
</tr>
<tr>
<td>Your Name:</td>
<td><input type="text" name="your_name"></td>
</tr>
<tr>
<td>Your Age:</td>
<td><input type="text" name="your_age"></td>
</tr>
<tr>
<td>Your Email:</td>
<td><input type="text" name="your_email"></td>
</tr>
<tr>
<td>Why you?:</td>
<td><input type="text" name="why_you"></td>
</tr>
</table>
<center><input type="submit" value="Submit"></center>
</form>

 

If there is a spelling issue, my bad ;P

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.