Re: [PHP] pass parameter via URL
[email protected] (Matijn Woudt)
| Newsgroups | php.general |
|---|---|
| Message-ID | <CAC_gtuNJwWLxfvM+JHQTDCZBsQ7PyBZ8PhKC-UBo-sCPkB6yzA@mail.gmail.com> |
On Mon, May 20, 2013 at 3:17 PM, iccsi <[email protected]> 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 > > How about just using <form action='myPage.php' method='GET'>? Put a normal submit button there and you're done (and as a bonus it takes care of character escaping) - Matijn