Re: pass parameter via URL

From: Date: Mon, 20 May 2013 13:25:00 +0000
Subject: Re: pass parameter via URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-321141@lists.php.net to get a copy of this message
On Mon, May 20, 2013 at 7:17 PM, iccsi <inungh@gmail.com> 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, > > This is more a js question. Because form.controlname.value is only available in javascript. A similar question I answered long ago on Stackoverflow is http://stackoverflow.com/questions/9009311/get-change-remove-url-parameters-with-jquery/9009558#9009558 And here is function I wrote that does it using pure javascript. http://shiplu.mokadd.im/61/parse-query-string-by-pure-javascrirpt/ -- Shiplu.Mokadd.im ImgSign.com | A dynamic signature machine Innovation distinguishes between follower and leader

« previous php.general (#321141) next »