nickyfraggle
10-30-2006, 08:22 AM
Hello,
I'm trying to query a database using values passed from a form (user input). Usually I do this using an input box, a jump menu or something similar...using the post method to get the values.
Is it possible to have an <li> pass a value which I can then use to query my database? What I'd really like to do is have a 'newsflash' on a home page. Each link would be a <li> list item, and would link to a specific page, e.g news.php. News.php would query the database using the value from the <li> and only output the information relevant to that headline. This way each headline links to the same page, but outputs different information!
Does anyone know if this is possible? Or you might even have a better way of accomplishing the same thing?
Thanks a lot!
Nicky
I'm trying to query a database using values passed from a form (user input). Usually I do this using an input box, a jump menu or something similar...using the post method to get the values.
Is it possible to have an <li> pass a value which I can then use to query my database? What I'd really like to do is have a 'newsflash' on a home page. Each link would be a <li> list item, and would link to a specific page, e.g news.php. News.php would query the database using the value from the <li> and only output the information relevant to that headline. This way each headline links to the same page, but outputs different information!
Does anyone know if this is possible? Or you might even have a better way of accomplishing the same thing?
Thanks a lot!
Nicky