[B]Hello all, need some help. Need to redirect page after submit. Here is my contact.html form:
[CODE]<form name=”contactform” action=”contactform.php” method=”post”>
<table border=”0″ cellpadding=”3″>
<tr>
<td><font size=”6″><a href=”http://www.something.com/” style=”text-decoration:none”>HOME</a></font></td>
<td rowspan=”7″ width=”1020″><center><font size=”3″>IF YOU HAVE A QUESTION, COMMENT, OR INQUIRY REGARDING RATES PLEASE CONTACT US AT:<br />INFO@SOMETHING.COM<br /><br />YOU MAY ALSO CONTACT US THROUGH OUR FORM:<br /><br />
NAME:<input type=”text” size=”36″ name=”name” class=”text1″ style=”font-family: times” />
<br />
EMAIL:<input type=”text” size=”36″ name=”email” class=”text2″ style=”font-family: times” />
<br />
<br />
<textarea name=”text” rows=”5″ cols=”139″ style=”font-family: times”>
</textarea>
<br />
<br />
<a onclick=”document.contactform.reset();return false;” href=”#”><img alt=”Reset” src=”reset.gif” border=”0″ /></a> /
<input type=”image” src=”submit.gif” alt=”Submit” />
</font></center></td>
</tr>
[B]Here is my contactform.php file:
[CODE]<?php
$name = $_POST[‘name’];
$email = $_POST[’email’];
$text = $_POST[‘text’];
mysql_connect (“xxxxx”, “xxxxx”, “xxxxx”) or die (‘Error: ‘ . mysql_error());
mysql_select_db (“xxxxx”);
$query=”INSERT INTO contacttable (name, email, text)VALUES (‘$name’,’$email’,’$text’)”;
mysql_query($query) or die (‘error updating database’ . mysql_error());
?>
[B]Once i sumbit, the window goes blank, to [url]www.something.com/contactform.php
I know nothing of php, just been inputing what everyone suggest. which has been a great help. This is the last problem i need fix and my contact page would be ready. anyone know what to insert? thanks!