473,623 Members | 2,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="JavaS cript"><!--
// THIS IS THE URL FROM THE REFERRERING PAGE!
var originalURL = unescape(locati on.search.subst ring(1));
//alert(originalU RL ); // 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="original URL">

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 2580
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.hcvl ny.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="JavaS cript"><!--
// THIS IS THE URL FROM THE REFERRERING PAGE!
var originalURL = unescape(locati on.search.subst ring(1));
//alert(originalU RL ); // 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="original URL">

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
2301
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 object instead of containing the string name property of the form. Here is the simplified test case: <html>
4
3956
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"> <input type="button" onClick="alert(this.form.name);"> </form>
3
2688
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 "name" property (which sources from "name" HTML attribue). The problem is, that if the form contains form control named "name", it overwrites the form name property. In fact, I'm quite surprised that it's so easy to spoil any of the form object...
6
3895
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" src="https://www.website.com/btn/click-but.gif" border="0"
7
14446
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 it possible from within the click event function to get the "name" property of the control? For example: ImageButton ImageButton1 = new ImageButton(); ImageButton1.Click += new System.EventHandler(ImageButton1_Click); .... code private void...
3
1676
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" action="http://www.somedomain.com/articles/results.xml" target="_blank"> <!-- Hidden values to be passed to the stored proc --> <input type="hidden" name="XTYPE" value="FR"> <input type="hidden" name="TG" value="1"> <input type="hidden" name="CRW"...
13
8616
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
2886
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"); if(file_field.value.length == 0) { alert("You are required to select an Image"); return false;
11
13399
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 issue is I do not know how to get a string representation of the Key/Name, as I want to display the code on screen as well. For instance in the resx file: Name | Value | Description E001 | My Error | This is error 1 In Code:
0
8217
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
8312
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6104
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4067
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2590
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1467
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.