Page 1 of 1

run query by hyperlink

Posted: Fri Nov 05, 2004 12:52 pm
by jasemhi
How can I run a query by having a user click on a hyperlink? Is this even possible?

Thanks.

Posted: Fri Nov 05, 2004 12:57 pm
by John Cartwright
ummmm, yes?

one possible way is to send a variable to the url, and check if it is set, if so, run the query

ie.

domain.com?query=yes

Code: Select all

if (isset($_GET['query']))
{

//run query

}

THanks

Posted: Fri Nov 05, 2004 2:59 pm
by jasemhi
Thanks. I will play with it. Also, you can use the hidden attribute of a form function right?

I think I got it.