Forum Moderators: open

Message Too Old, No Replies

Easy problem with form - please help :-)

         

with hindsight

6:52 pm on Jan 30, 2004 (gmt 0)


I am trying to make an enquiry form but do not really know what i am doing.. The below code is what i have.

The form sends an email to the right address but does not send any information.

Each email recieved says:

met=on
x=25
y=6

Where x and y keep giving different numbers. I have no idea what this is and am just trying to make this site for a friend. I am sure the below code can be easily fixed but I simply dont know what to do. Please can someone help me out here as once this page is finished, the whole site is done and hence i can leave this computer!

many thanks in advance. :)

<form method="post" enctype="text/plain" action="mailto:enquiries@exertion-uk.com?subject=Via Website Enquiry">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="text"><strong>Name</strong></td>
<td>&nbsp;<input type="text"></td>
</tr>
<tr>
<td class="text"><strong>Email:</strong></td>
<td>&nbsp;<input type="text"></td>
</tr>
<tr>
<td class="text"><strong>Phone:</strong></td>
<td>&nbsp;<input type="text"></td>
</tr>
</table>
<br><font style="font-size:10px">I would like to recieve information about:</font>
<table width="60%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="text" style="padding-left:20px"><input type="checkbox" value="Web Design">
Web design</td>
<td class="text"><input type="checkbox" value="Optimization">
Optimization</td>
</tr>
<tr>
<td class="text" style="padding-left:20px"><input type="checkbox" value="Graphic Design">
Graphic design</td>
<td class="text"><input type="checkbox" value="Advertising">
Advertising</td>
</tr>
<tr>
<td class="text" style="padding-left:20px"><input type="checkbox" value="Search Engine Rankings">
Search engine rankings</td>
<td class="text"><input type="checkbox" value="Applications">
Applications</td>
</tr>
<tr>
<td class="text" style="padding-left:20px"><input type="checkbox">
Full sites</td>
<td class="text"><input type="checkbox" value="Image Makeover">
Image makeover</td>
</tr>
</table>
<br>
<strong>Preferred method of contact</strong>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
<td class="text">Email: <input type="radio" name="met" checked> ¦ Phone <input type="radio" name="met"></td>
</tr>
<tr>
<td class="text"><strong>Subject: </strong>&nbsp;</td>
<td><input type="text"></td>
</tr>
</table>
<strong class="text">Message:</strong><br>
<textarea style="width:350;height:150"></textarea>
<p style="margin:0;padding-right:80px" align="right"><input type="image" src="images/submit.gif">&nbsp;<input type="image" src="images/reset.gif"></p>
</form>

Timotheos

7:33 pm on Jan 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi with_hindsight! Welcome to WebmasterWorld.

Every input tag needs a unique name to define it.

So change this
<input type="text">
to this
<input type="text" name="UniqueName">

dnimrodx

7:38 pm on Jan 30, 2004 (gmt 0)

10+ Year Member




You should give an ID to every single field in your form;
How are you sending the email? With ASP and Javascript?

Timotheos

7:47 pm on Jan 30, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The email is being sent with the mailto: in the action of the form. It would be better for you to use some sort of script to process the variables and mail them rather then the method you are using. I'll bet your webhost provides some ready made scripts to mail forms.

dnimrodx

7:52 pm on Jan 30, 2004 (gmt 0)

10+ Year Member



You should add some scripting to your code, because, like timotheos just said, not only you get to process the variables, but also there isn't an annoying dialog box being displayed by IE everytime the user submits the form...

fishy

9:41 pm on Jan 30, 2004 (gmt 0)

10+ Year Member



with_hindsight,

because you are using an image as your submit button,(which is certainly fine), the x and y you're seeeing are the coordinates of the image submit button on the user's browser.

unless the x & y results are hanging something up, don't sweat them.

if so and you want a flashier submit button then the default, use css to change colors, fonts, size, border color, etc.

hope that helps.