Click to See Complete Forum and Search --> : How can I do index.htm?param1=Guy
How can I do index.htm?param1=Guy
I want to pass a paramter to my webpage but I don't know how to do this, the parameter must stay hidden on the page it may not be passed into a textbox
can somebody help me with this ?
Guy
sebs
Jan 10th, 2001, 11:48 AM
why can u put it in a hidden text box and use POST as method?
a hidden text box is fine, but how do i use it ?
can you give me some code please
Guy
sebs
Jan 10th, 2001, 12:17 PM
you use it exactly like a normal one ,
<input type="hidden" name="txtHidden">
I think he means how does he recieve it... it can't be done in plain HTML..... it has to be PHP, ASP, Perl, etc... I think it can also be done in JavaScript.
I found out how to do it with Javascript
here is the code which returns everthing after the '?'
var text = window.location.search.substring(1);
This solves my problem :)
Guy
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.