Skip to main content
September 13, 2006
Question

selected item as URL parameter

  • September 13, 2006
  • 1 reply
  • 234 views
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
This topic has been closed for replies.

1 reply

Inspiring
September 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 ...

;)
September 14, 2006
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