PDA

View Full Version : Form Help


Cindertab
02-10-2006, 04:15 PM
I took the tutorial with making the form and I keep running into the same problem no matter what I try....Here is what happens.

When I fill out the form and hit submit, it will take me to a url not found and when I look in the address bar I notice it is going to http://www.mysite.com/www.mysite.com/sendresults.php
I dont understand why it has my web site in there 2x.

Any help is appreciated 8)

davidj
02-10-2006, 04:35 PM
you are using a absolute path in your form action i think

please post code

Cindertab
02-10-2006, 04:39 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>


<STYLE TYPE="text/css">

<!--

BODY { background-image: url(background2.jpg) }

BODY { background-repeat: no-repeat }

BODY { background-position: center }

-->

</STYLE>


<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
.style1 {
font-size: 24px;
color: #009999;
}
.style3 {color: #009999}
.style5 {color: #009999; font-weight: bold; }
-->
</style></head>

<body bgcolor="#000000">

logo.jpg
<p align="center" class="style1"> &hearts; Please fill out the form below


&hearts;</p>

<form name="contact form" id="contact form" method="post" action="www.uoaddicts.com/sendresults.php">
<div align="left">



<label><span class="style5">Characters Name:</span>
<input name="firstName" type="text" id="firstName" style="background-color:#009999"/>
</label>
</p>
<p class="style5">Previous Guild:
<input type="text" name="textfield2" style="background-color:#009999 " />
</p>
<p class="style5">Current Guild:
<input type="text" name="textfield3" style="background-color:#009999 "/>
</p>
<p class="style5">How long have you been playing UO?
<input type="text" name="textfield4" style="background-color:#009999 " />
</p>
<p class="style5">ICQ Number:
<input type="text" name="textfield5" style="background-color:#009999 " />
</p>
<p class="style5">Email:
<input type="text" name="textfield6" style="background-color:#009999 " />
</p>
<p class="style5">Would you like your email posted on your mamber page? Yes
<input type="checkbox" name="checkbox" value="checkbox" />
No
<input type="checkbox" name="checkbox2" value="checkbox" />
</p>
<p class="style5">Character background:</p>
<p class="style5"> <textarea name="textarea" cols="75" style="background-color:#009999 "></textarea>
</p>
<p class="style5">Comments:</p>
<p class="style5">
<textarea name="textarea2" cols="75" style="background-color:#009999 "></textarea>
</p>
<p class="style5">
<input type="submit" name="Submit" value="Submit" "/>
<input type="reset" name="Submit2" value="Reset" />
</p>
<p class="style5"> <label class="style5">
</label>
</p>

</div>
</form>
<p class="style1"></p>
</div>
</body>
</html>

davidj
02-10-2006, 04:48 PM
where you have ...

<form name="contact form" id="contact form" method="post" action="www.uoaddicts.com/sendresults.php">

change to

<form name="contact form" id="contact form" method="post" action="sendresults.php">

also remove spaces from your naming conventions

Cindertab
02-10-2006, 04:53 PM
omg I just did that before checking back here and it works. Thank you!

davidj
02-10-2006, 04:58 PM
any time