473,385 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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

Jul 20 '05 #1
1 2561
For example you could add simple JavaScript after HTML tag for your button
named Referrer:

document.forms[0].Referrer.value = originalURL;
"Stone" <x@y.com> wrote in message
news:RY***********************@news4.srv.hcvlny.cv .net...
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


Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Java script Dude | last post by:
We just discovered another IE bug. When an html form contains an element with a name of `name` IE's internal index screws up the .name property of the containing form to point to the bad element...
4
by: Marc Elser | last post by:
Hi Everybody, Can someone please tell me how to access the form name if there's a form field named "name", for example: <form name="myform"> <input type="text" name="name" value="Marc">...
3
by: Pavils Jurjans | last post by:
Hello, I have bumped upon this problem: I do some client-side form processing with JavaScript, and for this I loop over all the forms in the document. In order to identify them, I read their...
6
by: Angus Comber | last post by:
Hello I am working with an external perl script. I can submit something like this: <form target="mycart" action="https://www.website.com/cgi-bin/" method="post"> <input type="image"...
7
by: charliewest | last post by:
Using .Net Compact Framework, I have an ImageButton control (derived from the Button control) this is wired to a click event. The click event's receives the standard arguments (sender, e). How is...
3
by: TR | last post by:
A company that lets affiliates search its database assumes that affiliates will paste code, which looks something like this, into their web pages: <form method="GET" name="search_5"...
13
by: dhughey | last post by:
I am using <script type="text/javascript"> function setAction(frm){ act = ''; for(x=0;x<frm.se.length;x++){ if(frm.se.checked){ act = frm.se.value; } }
2
by: trint | last post by:
With the following code, I get the "message" whether or not there is content in my filefield: function check_file_field() { var file_field = document.getElementById("custCartFile");...
11
by: nelsonbrodyk | last post by:
Hey All, I want to use a resource file to store key/value pairs (resx file calls them Name/Value) for errors. I want the Key(Name) to be the error code, and the value to be the message. My only...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.