View Full Version : Form Help

02-10-2006, 03: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)

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

please post code

02-10-2006, 03: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">

<STYLE TYPE="text/css">


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

BODY { background-repeat: no-repeat }

BODY { background-position: center }



<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; }

<body bgcolor="#000000">

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


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

<p class="style1"></p>

02-10-2006, 03: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

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

02-10-2006, 03:58 PM
any time