SniperX
06-05-2003, 08:20 AM
Hi All, ME AGAIN :D
Here's a question which could go in either the javascript or the cgi forum - so here it goes:
I want to recieve a variable through a javascript prompt and then pass that variable to the .cgi document - something like this....
<script language='javascript'>
<!--
var userName = window.prompt('Enter your name please: ', ' ');
window.location='someScript.cgi?name=userName';
-->
</script>
I have tried that - but it doesn't work.
Any IDEAS ANYONE
Regards and Thanks in ADVANCE....
Here's a question which could go in either the javascript or the cgi forum - so here it goes:
I want to recieve a variable through a javascript prompt and then pass that variable to the .cgi document - something like this....
<script language='javascript'>
<!--
var userName = window.prompt('Enter your name please: ', ' ');
window.location='someScript.cgi?name=userName';
-->
</script>
I have tried that - but it doesn't work.
Any IDEAS ANYONE
Regards and Thanks in ADVANCE....