Click to See Complete Forum and Search --> : Help with forms


akshun
03-12-2003, 05:15 PM
Hi,

I give up trying to figure it out myself so maybe someone can help. I have a form on my website for people to join our 4X4 club. Part of the form requires the user to enter their email address.

The form is automatically added to our members section. This saves me alot of time, but I still have to go and make the email address they enter an actual hyperlink.

Could anyone explain how to make the form field make its' info a hyperlink, instead of showing up as plain old text on the page the info is submitted to?

I used frontpage 2000 to create the form but I am more than comfortable creating a form using javascript. I am just not sure how to go about doing what I want to do.

You can hit me up on AIM at akshun006 if you want.


thank you so much!

Jona
03-12-2003, 05:20 PM
Uh... I dunno exactly what you're asking for but I think I get it. You want something like:

document.formName.emailBox.value="<A HREF=\"mailto:"+document.formName.emailBox.value+"\">"+document.formName.emailBox.value+"</A>"

Is that what you want?:confused:

akshun
03-12-2003, 05:22 PM
Yes, when the forms info is submitted I want the email address to show up as a hyperlink on the page instead of showing up as plain text.

I kind of get an idea of how to do it from what you posted. thanks so much!

:)

akshun
03-12-2003, 06:05 PM
ok, I need some help using that code you have posted. Exactly how would I implement this into the form?

currently, the form name is "join", and the form field name is "email"

Here's the code for the form field. How would I change it to use your script? thanks.

<input
type="text" size="50" maxlength="256" name="Email"></font><font size="2">

Jona
03-12-2003, 10:37 PM
Ok, here: <FORM name="join" onsubmit="hyper()">

<script>
function hyper(){
document.join.email.value="<A HREF=\"mailto:"+document.join.email.value+"\">"+document.join.email.value+"</A>"
}
</script>