Complete form field with hyperlink

W

Wes

I have searched the archives, so forgive me if this has
been discussed.

Is there any way to have a form field automatically
complete by using special syntax when creating a hyperlink?

I wanted to create a "remove" form for our customers, and
have the link automatically fill in the email_address
field on that remove form.

I don't know if FP can do this, but I have seen it done
like this:
http://www.domain.com/unsubscribe.html?
[email protected]

When the page loads, the email field is filled with
(e-mail address removed)

Thanks,
Wes
 
J

jon spivey

Hi,
If you have asp you might do
Link
http://you.com/[email protected]
and then
<input type="text" name="email" value="<%=request("email")%>">
If not you could use javascript
Link
http://you.com/[email protected]
<form>
<input type="text" name="email" value="">
</form>
<script type="text/javascript">
a=location.href;if(a.indexOf("=")>-1){a=a.split("=");
document.forms[0].email.value=a[1];}
</script>

Both do the same thing but use the server side method if you can
 
W

Wes

Thank you sir.
-----Original Message-----
Hi,
If you have asp you might do
Link
http://you.com/[email protected]
and then
<input type="text" name="email" value="<%=request("email")%>">
If not you could use javascript
Link
http://you.com/[email protected]
<form>
<input type="text" name="email" value="">
</form>
<script type="text/javascript">
a=location.href;if(a.indexOf("=")>-1){a=a.split("=");
document.forms[0].email.value=a[1];}
</script>

Both do the same thing but use the server side method if you can

--
Jon
Microsoft MVP - FP



Wes said:
I have searched the archives, so forgive me if this has
been discussed.

Is there any way to have a form field automatically
complete by using special syntax when creating a hyperlink?

I wanted to create a "remove" form for our customers, and
have the link automatically fill in the email_address
field on that remove form.

I don't know if FP can do this, but I have seen it done
like this:
http://www.domain.com/unsubscribe.html?
[email protected]

When the page loads, the email field is filled with
(e-mail address removed)

Thanks,
Wes


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top