Shoutbox

contact, email from web thingu - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: contact, email from web thingu (/showthread.php?tid=72756)

contact, email from web thingu by duck! on 03-17-2007 at 08:01 PM

Can someone make a contact thingu like in http://sonicsam.net/?page_id=20 With the name, message and stuff :P Or give me a very basic thing with just the message and submit feild :p so i can add the rest,  the only thing i dont get is the submit button.. and i tried learning but it confuses me :p
Please help the greatest dick duck here


RE: contact, email from web thingu by Zahid™ on 03-17-2007 at 08:17 PM

http://www.google.co.uk/search?hl=en&q=making+a+c...&btnG=Search&meta=


RE: contact, email from web thingu by duck! on 03-17-2007 at 09:28 PM

Can someone tell me whats wrong with this code :)

code:
<form action="mailto:xyz@xyzhost.com" method="post" enctype="text/plain">
<table width="80%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="35%">
<div align="right"><b>Name:</b></div>
</td>
<td width="65%">
<input type="text" name="name" size="15">
</td>
</tr>
<tr>
<td width="35%">
<div align="right"><b>Email:</b></div>
</td>
<td width="65%">
<input type="text" name="email" size="20">
</td>
</tr>
<tr>
<td width="35%">
<div align="right"><b>Comment:</b></div>
</td>
<td width="65%">
<textarea name="comment" cols="25" wrap="virtual" rows="3"></textarea>
</td>
</tr>
<tr>
<td width="35%">&nbsp;</td>
<td width="65%">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="reset" value="Reset">
</td>
</tr>
<tr>
<td width="35%">&nbsp;</td>
<td width="65%">&nbsp;</td>
</tr>
</table>
</form>

I know its in html and i want to keep it in html, but the code in word press messes :S
Help.
RE: contact, email from web thingu by Baggins on 03-17-2007 at 09:47 PM

I can't see anything wrong with your markup, but I would like to suggest a mailer script.

code:
<?php
mail("xyz@abc.com", "Contact form data", var_dump($_POST));
?>


This is from the code I used for my science fair script and I found it works nicely it you dont mind the format.

I wrote this code assuming you have php with mail() seeing that you mentioned WordPress.
RE: contact, email from web thingu by duck! on 03-17-2007 at 10:11 PM

Why do my buttons keep on going in word press...
Submit and reset keep dissapearing =/


RE: contact, email from web thingu by Baggins on 03-17-2007 at 10:17 PM

If you look in the page source are they there?


RE: RE: contact, email from web thingu by duck! on 03-17-2007 at 10:24 PM

quote:
Originally posted by Baggins
If you look in the page source are they there?

The code for the contact form in the page source is
code:
        <div class='snap_preview'><form action="mailto:xyz@xyzhost.com" method="post" enctype="text/plain">
<table border="0" cellpadding="2" cellspacing="0" width="80%">
<tr>
<td width="35%">
<p align="right"><strong>Name:</strong></p>
</td>
<td width="65%"></td>
</tr>
<tr>

<td width="35%">
<p align="right"><strong>Email:</strong></p>
</td>
<td width="65%"></td>
</tr>
<tr>
<td width="35%">
<p align="right"><strong>Comment:</strong></p>
</td>
<td width="65%"><textarea name="comment" cols="25" rows="3"></textarea></td>
</tr>
<tr>
<td width="35%"></td>
<td width="65%">

</td>
</tr>
<tr>
<td width="35%"></td>
<td width="65%"></td>
</tr>
</table>
</form>
</div>       


but what ive coded is:
code:
<form action="mailto:xyz@xyzhost.com" method="post" enctype="text/plain">

<table width="80%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="35%">
<div align="right"><b>Name:</b></div>
</td>
<td width="65%">
<input type="text" name="name" size="15">
</td>
</tr>
<tr>
<td width="35%">
<div align="right"><b>Email:</b></div>
</td>
<td width="65%">
<input type="text" name="email" size="20">
</td>
</tr>
<tr>
<td width="35%">
<div align="right"><b>Comment:</b></div>
</td>
<td width="65%">
<textarea name="comment" cols="25" wrap="virtual" rows="3"></textarea>
</td>
</tr>
<tr>
<td width="35%">&nbsp;</td>
<td width="65%">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="reset" value="Reset">
</td>
</tr>
<tr>
<td width="35%">&nbsp;</td>
<td width="65%">&nbsp;</td>
</tr>
</table>
</form>


=/ So the buttons and text areas for Name and Email go missing =/