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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Variable To New URL 1

Status
Not open for further replies.

bretttt

Programmer
Jul 23, 2002
74
0
0
US
Hello, i am trying to send a variable from a prompt box to a new url and am having difficulties.
I have

if (platval == \"\"){
window.alert('You Must Enter A Valid Number');
}
else{

document.location.href='Cart_Manager.pl?quantedit=$pasd&truequant=platval';
}
}
The link is returning truequant=platval instead of returning the value of platval. Please Help, Thank you.
 
Try changing this line:
document.location.href='Cart_Manager.pl?quantedit=$pasd&truequant='+platval;


Adam
while(ignorance){perpetuate(violence,fear,hatred);life=life-1};
 
Taht didnt work... Any other suggestions?
 
Sorry, i did work, i was reading it wrong. Thank you very much.
 
How can i make i pop up the window.alert, if platval dont equal a numeric character? thanks in advance

if (platval == \"\"){
window.alert('You Must Enter A Valid Number');
}
else{

document.location.href='Cart_Manager.pl?quantedit=$pasd&truequant=platval';
}
}

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top