PDA

View Full Version : CODE Help requested


ladee
01-12-2001, 04:49 PM
If you put the code somewhere and used it, what happens is when I get the email, it looks like this:
name=Di <--that's ok
email address=2delo@home.com
Now here the word 'address' is a part of the actual email address. In other words, if I click on that email addess to reply, along comes the word 'address' in that field as well. Got me? If not, try it yourself and see. That is what I am actually trying to clear up. Like so below is what is happening.

EMAIL ADDRESS=2delo@home.com (http://ADDRESS=2delo@home.com)


<!-- --><form name="email" method="POST" action="mailto:
2libras@home.com?subject=SHAGGY's Studio Status"
onSubmit="return mailMe( this.form )" enctype="text/plain">
<b><p>NAME:</b><br>
<input type="text" name="SUBMITTED BY" value size="30"><br>
<b>E-MAIL ADDRESS:</b><br>
<input type="text" name="EMAIL ADDRESS" value size="30"><p>
<input type="submit" value="ADD ME, NOW!"> <input type="reset" value="I GOOFED!">
</form>
<!-- -->

Is it possible to split the name/value pairs when sending form data via ACTION=MAILTO?


------------------
SHAGGY's Studio - 'Mr. Boombastic'
http://members.home.net/2libras/ss-index.html

[This message has been edited by ladee (edited 01-12-2001).]

Ruttiger
01-13-2001, 03:57 AM
i think i know what you're talkin about - when you get the email, and want to click on the address to reply, the address you clicked on is:

ADDRESS=myaddress@dot.com

or somethin, so when you click the hyperlink, a browser window tries to open: http://ADDRESS=myaddress@dot.com

right?

if so - the email is coming in fine, it's just your mail reader that's trying to create a link.

if it really bothers you, you could add a space before the email address in the FORM right before it's submitted...somethin like this:
FIRST: i would change the name parameter from "EMAIL ADDRESS" to "EMAIL_ADDRESS" so we can reference it.

then your onSubmit becomes:
onSubmit="email.EMAIL_ADDRESS.value=' '+email.EMAIL_ADDRESS.value; return mailMe(this.form)"

now, the user will see that space get added. if that bothers you, you could have a hidden field, then the onSubmit would change the value of that hidden field instead.

i used Outlook Express, and adding this space worked fine.

good luck, lemme know if it helps:
blake@ruttiger.com

ladee
01-13-2001, 05:50 AM
You are a true GEM!! I cannot see it physically because my server is down now. But I have tried it in my HTML editor (Arachnophilia) and since the form is live, it came through my email just as I want. yes it was itrritating because I want to be able to click the address for a reply easily. And you know what happens when it is done the other way. You are soooooooo kind and smart and brilliant. Can you tell I am happy? LOL

Thanks BUNCHES!!!

------------------
SHAGGY's Studio - 'Mr. Boombastic'
http://members.home.net/2libras/ss-index.html

ladee
01-13-2001, 05:53 AM
PS - About the hidden value, wouldn't that hide the whole line or would it hide the name of the line (email address)?

Tell me the about hidden value line thing. I want to see that option as well.

------------------
SHAGGY's Studio - 'Mr. Boombastic'
http://members.home.net/2libras/ss-index.html

kevin
01-13-2001, 03:07 PM
Hi ladee,

I'm happy to see you got better help over here. I tried Ruttiger's solution and it worked perfectly :)

Regards,
Kevin

ladee
01-13-2001, 04:57 PM
Yes, Thanks to you Kevin for directing me here, I am a happy webmistress now. LOL

Take Care and thanks much!!

------------------
SHAGGY's Studio - 'Mr. Boombastic'
http://members.home.net/2libras/ss-index.html

[This message has been edited by ladee (edited 01-13-2001).]