<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR></HEAD>
<BODY
style="FONT: 10pt MS Sans Serif; MARGIN-LEFT: 2px; MARGIN-TOP: 2px"><BR><BR>>>>
ben@babelfish.co.uk 5/14/01 8:02:08 AM >>> <BR>You need to tell the
form which page it is submitting the data too. <BR><BR><form name="myform"
method="Get" action="thispage.asp"> <BR><BR>You can pass data from page to
page using your method (by building up the <BR>querystring yourself) but in this
case there is no need. <BR><BR>hope this helps. <BR><BR>.b <BR><BR>-----
Original Message ----- <BR>From: "Varsou Nilsa" <<U> <A
href="mailto:nvarsou@infoserve.gr">nvarsou@infoserve.gr</A>> <BR>To: <<U>
<A href="mailto:javascript@LaTech.edu">javascript@LaTech.edu</A>> <BR>Sent:
Monday, May 14, 2001 3:10 PM <BR>Subject: [Javascript] passing values in a link
<BR><BR><BR>Hi everyone, I need some help, I am trying to pass a key value in a
href <BR>link, I have done this before and I just don't get why is not working,
<BR>the truth is I am a begginer in jscript, bellow I have my code, when I
<BR>click the "take me there" link to de <A
href="http://default.htm">default.htm</A> page I want to pass a <BR>key with the
value of the <A href="http://T1.field">T1.field</A> on it, instead of this the
link take <BR>me to the default page with a null key something like <A
href="http://default.htm?key=,">default.htm?key=, </A><BR>yet when I put a
default value to the key (something like <BR><A href="http://href="
default.htm?key="">href="default.htm?key="</A> + 4) the result is still the
same, what am I <BR>doing rong? <BR>TIA <BR><BR><form name="myform"
method="Get"> <BR><p><input type="text" name="T1" size="20">
<BR><p><input type="text" name="T2" size="20"> <BR><p>
<BR><input type="radio" name="showView" id=showView value="0"><label
<BR>for="showAll" id="label1"> <BR>Show all </label> <BR></p>
<BR><p> <BR><input type="radio" name="showView" id=showView value="1"
<BR>checked><label for="showFiltered " id="label2"> <BR>Filter
</label> <BR></p> <BR></form> <BR><script
language="javascript"> <BR>function validate(){ <BR><A
href="http://if(document.myform.showView(0).checked)">if(document.myform.showView(0).checked)</A>{
<BR><A href="http://document.myform.T1.value">document.myform.T1.value</A> ==
""; <BR><A href="http://document.myform.T2.value">document.myform.T2.value</A>
== ""; <BR>} <BR><BR><A
href="http://if(document.myform.showView(1).checked)">if(document.myform.showView(1).checked)</A>{
<BR><A href="http://if(document.myform.T1.value">if(document.myform.T1.value</A>
== "" && <BR><A
href="http://document.myform.T2.value">document.myform.T2.value</A> == ""){
<BR>alert("Sorry, you must fill at least one of the <BR><A href="http://fields."
? );><BR>return false; <BR>} <BR><A
href="http://document.myform.submit();">document.myform.submit(); </A><BR>}
<BR>} <BR><BR></script> <BR><BR><p><a <A href="http://href="
default.htm?key="">href="default.htm?key="</A> + <A
href="http://document.myform.T1.value">document.myform.T1.value</A>
onClick="return <BR>validate()">take me there</a></p>
<BR><BR><BR><BR><BR><BR><BR>Nilza Da Silva Varsou <BR>Web Developer
<BR><BR>INFOSERVE SA <BR>145 Vizantiou <A href="http://str.">str. </A><BR>GR 142
35, Kalogreza <BR>Athens, Greece <BR><A href="http://Tel. ">Tel.
</A>+30-1-2595300 <BR>Fax +30-1-2595301 <BR>-------------------------------
<BR><U><A href="http://www.infoactivity.com">www.infoactivity.com</A> <BR>eCRM
application <BR>-------------------------------
<BR><BR><BR>_______________________________________________ <BR>Javascript
mailing list <BR><U><A
href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A> <BR><U><A
href="http://www.LaTech.edu/mailman/listinfo/javascript">http://www.LaTech.edu/mailman/listinfo/javascript</A>
<BR><BR><BR><BR>_______________________________________________ <BR>Javascript
mailing list <BR><U><A
href="mailto:Javascript@LaTech.edu">Javascript@LaTech.edu</A> <BR><U><A
href="http://www.LaTech.edu/mailman/listinfo/javascript">http://www.LaTech.edu/mailman/listinfo/javascript</A>
<BR></U></U></U></U></U></U></U></BODY></HTML>