Topic: Pathetic, I know... Pages that link to <a href="https://ozoneasylum.com/backlink?for=9650" title="Pages that link to Topic: Pathetic, I know..." rel="nofollow" >Topic: Pathetic, I know...\

 
Author Thread
wolfcat
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jun 2003

IP logged posted posted 06-18-2003 22:21 Edit Quote

I have an ongoing war with email forms. I always check my code a thousand times, and yet they never seem to work. Once I did it right, but the server erased that file, and so I'm still lost. I just wrote this latest form from scratch -- it is just a simple form that submits via email -- and it keeps sending blank emails!

I've read the code over and over, and am beginning to go blind. Please help me!

check out the page at www.gourmandbooks.com/catalogue.htm

mobrul
Bipolar (III) Inmate

From:
Insane since: Aug 2000

IP logged posted posted 06-19-2003 00:06 Edit Quote

Let me start by saying your code is a bloody mess. You'll have less trouble troubleshooting if you have clean code. Your head element is nested within your body element. You're using a tag that doesn't even exist (<left> ). You're not closing your tags...a mess.

Now, on to your problem.
I cut and pasted the part of your code that is the issue, and then took all the superflous stuff out of it:

code:
<html>
<head>
</head>
<body>

<form action="mailto:mobrul@hotmail.com?subject=Online Book Order" method="post" enctype="text/plain">

Name: <input name="name" type="text" id="name" value="" size="30"><br>
Surname: <input name="surname" type="text" id="surname" size="40"><br>
Address: <input name="address" type="text" id="address" size="40"><br>
Zip Code: <input name="zipcode" type="text" id="zip code" size="15"><br>
City: <input name="city" type="text" id="city"><br>
State: <input name="region" type="text" id="region"><br>
Country: <input name="country" type="text" id="country"><br>
E-Mail: <input name="Email" type="text" id="Email"><br>
Telephone: <input name="telephone" type="text" id="telephone"><br>
English Edition: <input name="engEdition" type="text" id="engEdition" size="4"><br>
Spanish Edition: <input name="spaEdition" type="text" id="spaEdition" size="4"><br>
French Edition: <input name="freEdition" type="text" id="freEdition" size="4"><br>
Italian Edition: <input name="itaEdition" type="text" id="itaEdition" size="4"><br>
German Edition: <input name="gerEdition" type="text" id="gerEdition" size="4"><br>
I authorize...: <input name="autorizo" type="checkbox" id="autorizo" value="Autorizado"><br>
Credit Card #: <input name="creditcardnumber" type="text" id="creditcardnumber"><br>
Expiration Date: <input name="expirationdate" type="text" id="expirationdate" size="5"><br>
<input name="submit" type="submit" id="submit" value="Submit Order"><br>
<input name="reset" type="reset" id="reset" value="Clear Form"><br>

</form>

</body>
</html>


...and it works like a charm.

I also noticed that the name and id of your 'how many of each edition' input fields were all the same thing -- namely 'ejemplares'. In my version, I gave them unique names and ids.

To be perfectly honest with you, I have no idea what caused/solved the problem. It could be the duplication of input names. It could be the messy code. Some browsers are pretty forgiving, but they'd have to be REALLY forgiving to work as expected under those conditions.

My advice to you would be to take what I have, then start adding your pieces on until one of two things happens:
1) something breaks
- - note what you added, and if you can't figure it out yourself come back here and ask away.
2) you finish the project successfuly
- - send me a cookie.

Hope that helps.

PS
Sending unencrypted credit card numbers via unencrypted e-mail isn't a good way to keep your customers. You may want to rethink that business plan.

wolfcat
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jun 2003

IP logged posted posted 06-19-2003 14:46 Edit Quote

Thanks ever so much mobrul -- I know much of the code is awful -- much of it wasn't mine to begin with, my client wanted the look exactly the same as it had been, and this is such a dreary site that I've been going along with them... I know that credit cards via mail are bad, my client is insisting on that option, though I am still trying to change their mind. Not to mention the fact that the bloody server doesn't allow php or cgi... Arghh!

Your code is a great help -- oh, and yes, I did notice that the edition inputs were all the same, and fixed that late last night, as well as found a couple of extra <tr> tags... Now to upload that, and then try to change my client's mind (and or server!).

Thanks again!


wolfcat
Obsessive-Compulsive (I) Inmate

From:
Insane since: Jun 2003

IP logged posted posted 06-19-2003 22:04 Edit Quote

Just wanted to say thanks again I've talked my client into letting me use a secure form host server... Once I put the form up there and just changed the action (sent to the server instead of via email) the form itself actually worked great!
Now, I just have finish translating it into german and italian :P




Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu