08-20-2008, 01:41 PM
i have to create a link on the page which onclick the user should not only be diverted to that page (users.php) but also dynamically call a function which is written on that page ( function in users.php). How will i do it?
08-20-2008, 01:50 PM
Not going to happen with the onclick.
You would have to set some value in a querystring, read the querysting on the new page, and fire it.
08-21-2008, 10:36 AM
Well for diverting to other page u can use below code:
Hope this helps you
08-21-2008, 10:19 PM
you can simply tack parameters onto the url of the php page you are sending the user to.
<a href="users.php"> users</a>
<a href="users.php?user=bob;&secure=0"> users</a>
edit: oops, A1ien51 already said something close...
still, you can use the onlclick function and the redirect to do the same thing in building the redirect url as you can making the href...
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.