PDA

View Full Version : Can you see the problem?


bar03
04-09-2003, 06:01 PM
Hi there...

I'm trying to see how a "form" might work so I've used a mailto link to test it but when I select "Send" my default e-mail page appears instead of the form test being sent!:(

Do you see a problem with the HTML code below?(P.S. forget about the table attributes, its just a test!)

Thanking you in advance, Bar03

<!DOCTYPE html PUBLIC “-W3C//DTD XHTML 1.0 Transitional//EN”
“http:www.w3.org/TR/xhtml1/DTD/transitional.dtd”>
<html>
<head>
<title>Solicitors </title>
</head>
<body background= “blue1.jpg” >
<table border= “0”>
<form action= “mailto:http://www.barry@themortgagefile.com” method= “post”>
<tr>
<td> Your Name:<input type= “text” name= “name” /></td>
</tr>
<tr>
<td> Address:<input type= “text” name= “address” /></td>
</tr>
<tr>
<td><input type= “submit” value= “Send” /></td>
<td><input type= “reset” value= “Reset” /></td>
</tr>
</table>
</form>
</body>
</html>

redhead
04-09-2003, 07:09 PM
methinks it should just be action="mailto:user@example.com"...

and you shouldnt use the circly quote marks... just the normal ones: ' and "... :thumbsup:

[edit] methinks you should get rid of the space between action= "" see?... not sure about that though...

bar03
04-09-2003, 10:14 PM
Thanks for the advice Redhead, I've tried it but it's still the same!
Guess I'll have to sleep on it!:)

Nightfire
04-09-2003, 10:34 PM
It'll also load up your email as you're using the mailto: , to get rid of that you'll need use a serverside language

bar03
04-09-2003, 11:10 PM
What, like Perl? P.S I don't have a server yet. Or do you mean just use the language?

Nightfire
04-09-2003, 11:15 PM
Yeah, I mean like perl, asp, php, etc :)

brothercake
04-09-2003, 11:23 PM
Originally posted by redhead
methinks you should get rid of the space between action= "" see?... not sure about that though...
The spaces are allowed in HTML but not in XHTML.

redhead
04-10-2003, 04:44 PM
"The spaces are allowed in HTML but not in XHTML."

nice one... cheers for clearing that up... never was sure if they were allowed or not ;)

justame
04-10-2003, 05:09 PM
Originally posted by bar03
P.S I don't have a server yet.

bar...
ummm ...just a operative® word...server...:O))) onccce ya have thattt??? aka have your website hosted??? thennn /me just a bets® the 'server/host' twould have the 'scripts' ya just a need® to have the 'form' input sent to your email identity...:O)))

bar03
04-10-2003, 09:45 PM
That is correct Justame,
but I've been studing a book :
"Sams Teach Yourself Web Publishing with HTML and XHTML"
by Laura Lemay(Maybe you've heard of her)
and she says you can test your forms "before going live" with a mailto link. I've gone over it several times but no joy!:(

justame
04-11-2003, 04:11 AM
bar...
just a hhh®.../me hears ya...n' ummm didnt know sheee was the just a uthor® 'cept /me is just a familiar® with thoseee kinda books...:O)))

n' tooo??? on just a sidenote®??? /me noticed this...
http:www.w3.org/TR/xhtml1/DTD/transitional.dtd
ummm ...shouldnt thattt just a be®...
http://www.w3.org/TR/xhtml1/DTD/transitional.dtd

aka youre just a missing® the // ???

n' ummm /me has thisss one just a copied/credited/saved® from boxer...:O)))

<html>
<head></head>
<body>
<form name="myForm" action="mailto:YOUR EMAIL ADDRESS" method="post"
enctype="text/plain">
Enter Your Name:
<br>
<input type="text" name="user" size="30">
<br>
<input type="submit" name="B1" value="Submit info.">
</form>
</body>
</html>


n' /me sees hes got the enctype="text/plain" where yourrrs doesnt...:O(((