Page 1 of 1
Event Handling
Posted: Wed Apr 02, 2003 11:15 pm
by Shantanu
Dear all,
I am new to PHP.
I want to write a PHP script on the click on the click of a button.
Pls. guide me in the same.
Thanks in advance.
Shantanu
Posted: Thu Apr 03, 2003 1:32 am
by twigletmac
I'm not sure exactly what you are asking but if it is 'Can I run a PHP script from an onclick event?' then the answer is no, PHP is not like JavaScript and scripts can only be run if the page is reloaded:
viewtopic.php?t=1030
viewtopic.php?t=6969&highlight=php+onclick
viewtopic.php?t=7069&highlight=php+onclick
viewtopic.php?t=6339&highlight=php+onclick
Mac
Event handling
Posted: Thu Apr 03, 2003 3:03 am
by Shantanu
hii Mac,
Thanks for the reply.
1. The thing I want to do is :
I've a php page acting as a template,having 2 buttons next and previous.(first.php)
On the click of next/back button, I fetch data from database and display it on the first.php. For fetching the data from databse I'm using a session varible in the where clause. This variable has to be incremented by 1 on click of next button and decremented by 1 on click of back button.
Looking fwd for ur kind help.....
Thanks,
Shantanu