Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

passing a value to another page

Status
Not open for further replies.

mrmtek

Programmer
Oct 13, 2002
109
AU
basic problem:
I have a text box which a user can change (enter the exchange rate), how do you pass the value entered by the user with out using a form where $rate needs to contain the value entered into the text text box.

<a href='appDatacalc.php?recid=$ref&exrate=$rate'>
 
Use JavaScript!

<a href="javascript:passValues();">...</a>

<script language="JavaScript">
<!--

function passValues () {
var recid = document.formname.inputname.value;
var exrate = document.formanme.inputname2.value;
window.location.href = "appDatacalc.php?recid="+recid+"&exrate="+exrate;
}
// -->
</script>

HTH,

Raphael Pirker
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top