Forum Moderators: DixonJones

Message Too Old, No Replies

Need to pass parameter thru URL

how do I do this?

         

da_clicks

2:23 am on Dec 3, 2004 (gmt 0)

10+ Year Member



Hello everyone,

I need to pass a parameter from my clicked URL into a reg form that I host, but when it is submitted, the data goes to another site.

So, if i have

www.mysite.com/index.html?keyphrase=blue+widgets where "blue widgets" is my keyphrase.

When this link is clicked, I need to send the parameter for keyphrase to be submitted along with other data entered on the form on my page.

How do I do this?

Do you understand my question, cause I confused myself :)

Thanks in advance for any help.

da_clicks

2:26 am on Dec 3, 2004 (gmt 0)

10+ Year Member



Forgot to add that my site is in plain html, but I wandered if I could add a java script or maybe do such tracking and passing of parameters in php or something.

As you may be able to tell, I am not to sophisticated.

Thanks again,

BlackRaven

4:48 am on Dec 5, 2004 (gmt 0)

10+ Year Member



could you specifiy what language u scripting in? ASp? Php?

ok let assume you are using ASP.

SO basically you will need two variables one to store values from the URL keyphrase and the other to store values from the form.

Firstly the Form has to looking something like this

<form method="POST" name="FORM">
<input type="text" name="text">
</form>

pay attention to the method its has to be POST

Now one you have done that in ASP
<%
Dim keyphrase
keyphrase=Response.querystring("keyphrase")

Dim text
text=Response.form("text")
%>