Re: pass parameter via URL

[email protected] ("iccsi")
Newsgroups php.general
Message-ID <[email protected]>
Thanks a million for helping,
I just need to have a JS function to return a string var which contains my 
variable from sending page and call the function onClick on the button.
Please let me know if I am wrong,
Thanks again for helping,

Regards,

Iccsi,

"Jim Giner"  wrote in message news:[email protected]...

On 5/20/2013 9:17 AM, iccsi wrote:
> I would like to know how can I pass a parameter via URL using control
> value on the form.
> something like myPage.php?MyID=txtMyID.value
> I can use myPage.php?MyID=1, but cannot use myPage.php?MyID=txtMyID.value.
>
> Your help and information is great appreciated,
>
> Regards,
>
> Iccsi
Yes - this is a JS question.  But - the answer is:

var url="myPage.php?MyID="+txtMyId.value;

Now the variable 'url' contains your url
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.