Log in

View Full Version : Contact us box



bbilal
09-22-2007, 08:25 AM
I need a contact us box for my website contact us page
Requirments:

Name:
E-mail:
Mobile-no:
Contact to: (here I want a box like see above font one) Arial
Black Arial
Message:

Reset form | Submit

Can someone help me???

tech_support
09-22-2007, 10:22 AM
Err, I think you use HTML for this :p
Go read a HTML tutorial. Or, in Dreamweaver, you can use the form tools.

//Darn it, can't link to w3schools.com 'cause it's closed.

For sending the data, You need to use a server-side language to do this, like PHP. Here's a good tutorial to start off with. (http://www.php-mysql-tutorial.com/)

Hound
09-22-2007, 07:37 PM
You cant use html?

Here is where I am at (in the same boat)

http://www.nickschale.us/LU2/contact.html
got the form built how i want, just need to figure out how the post action works

Thanks for any help!!!

insanemonkey
09-22-2007, 07:54 PM
What they do is use iframe. becuase unless they have the form in html but post it to another php page, if you can use php then here you go....

This is the contact.html or php page....

<center>
<form method="post" action="../contact/mailme.php">
&nbsp;<table border="1" width="400" height="41" style="border-collapse: collapse" bordercolor="#000000">
<tr>
<td height="4" width="95">
<b>Your Email:</b> </td>
<td height="4" width="342"> <input type="text" name="email" size="45"></td>
</tr>
<tr>
<td height="27" width="95">
<b>Your Website:</b></td>
<td height="27" width="342"> <input type="text" name="subject" size="45"></td>
</tr>
<tr>
<td height="20" width="95"><b>Message:</b></td>
<td height="20" width="342">
<textarea name="message" cols="34" rows="3">Message here...</TEXTAREA></td>
</tr>
</table>
<p>
<input type="submit" name="submit" value="Submit">
<input type="reset" name="reset" value="Reset"></p>
</form>
<p>&nbsp;</p>
</center>
And this is the processing page....


<?

$to = "YOU@YOURSITE.COM";

if($submit)
{
mail("$to", "$subject", "$email", "$message");

} else {
echo "There was an error please try again at a later time.";
}
?>

<?php
//This is to redirect them to a thankyou page or whatever!
header( 'Location: htt://www.yourpage.com/thankyou.html' ) ;
?>

bbilal
09-23-2007, 12:39 PM
Making a form is not I want I want the script of if someone click the submit button after filling the form and everything the information will come into my email! I can make the form from dreamweaver but how to make the 'submit' button work need help in that regard.

insanemonkey
09-23-2007, 12:44 PM
i dunno if that is possibble, you could simply put those two page together but i dont think that ispossible, you might have to have ur own server..

Rockonmetal
09-23-2007, 01:25 PM
If you really want to do this go ahead... you just need to replace this line:

<form>
with

<form action="MAILTO:Youremail@domain.com" method="post" enctype="plain/text">
Its not secure at all and requires your user to have some type of mail program like outlook... But it works... I recommend using php to do this... but since you said you can't then... thats ok...