Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

selected item as URL parameter

Guest
Sep 13, 2006 Sep 13, 2006
HI
I have a dynamic list box on a php page and need to pass the selected value as a URL parameter. I have tried a few things but nothing seems to work. I use the parameter to filter a recordset on the called page.

Thanks
Keith Jakins
TOPICS
Server side applications
233
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 14, 2006 Sep 14, 2006
keithjak wrote:
> HI
> I have a dynamic list box on a php page and need to pass the selected value as
> a URL parameter. I have tried a few things but nothing seems to work. I use the
> parameter to filter a recordset on the called page.
>
> Thanks
> Keith Jakins
>
you can can do that with javascript 🙂 using onChange statement
or simply send form with GET method

<form method="GET" action="yourpage">
<select name="category">
<option value="1">category 1</option>
<option value="2">category 2</option>
...
</select>
<input type="submit" value="go"/>
</form>

when you send this form the url must look like this
http//.../yourpage?category=1 or 2 ...

;)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 14, 2006 Sep 14, 2006
LATEST
I am still having problems with this. I have attached the page I am using it calls itself as I need to update values on the page as the user enters details and makes selections
Thanks
Keith
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines