On 'Submit' I see my hidden "Name" not the actual value

S

Stone

OK .. admittedly this is newbie dumb...
Its a JAVA script in a FORM

I have passed (successfully) the referring URL into my form
page on loading....

<script language="JavaScript"><!--
// THIS IS THE URL FROM THE REFERRERING PAGE!
var originalURL = unescape(location.search.substring(1));
//alert(originalURL ); // this works!
//--></script>

Now I just want to send this URL name from my form when submit
is pressed so I added this in my Form code.

<input type=hidden name=Referrer value="originalURL">

Now, ON submit I can send this hidden field, but it is always
arrives as
Referrer: originalURL
not the value I see in my alert ALERT test (i.e. the actual URL)

stupid huh... can anyone help me?

Thanks -stone
 
V

Vjekoslav Begovic

For example you could add simple JavaScript after HTML tag for your button
named Referrer:

document.forms[0].Referrer.value = originalURL;
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top