|
You can't call a PHP Function directly from the onChange event of a drop down list like that. (PHP happens server side, before the page is sent to the client, the onChange event happens on the client side, the server has already sent the page and isn't worrying about it any more.)
You have two options, depending on what it is you want to do. You could write the function in JavaScript, but bear in mind if you're doing authintication orientated things it won't be very secure.
Your other option is to write a small JavaScript function to refresh the page and add the value as a query string (or form value), then in the PHP script, check to see if that value exists, then execute the code from there.
I can't give you a full working example because I don't do PHP.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE
|