EagerWolf Posted February 17, 2007 Share Posted February 17, 2007 Hello! I have got forms, which are stored in array... I want set $link = $plink + 1 when Next is pressed and $link = $plink - 1 when Back is pressed. I think it can be done with onClick event. I was trying, but I wasn't successful. Plese help me. Link to comment https://forums.phpfreaks.com/topic/38911-onclick-set-php-var/ Share on other sites More sharing options...
TEENFRONT Posted February 17, 2007 Share Posted February 17, 2007 as far as im aware it cannot be done with onclick as php is processed before the page shows up. Most likley possible using AJAX. Link to comment https://forums.phpfreaks.com/topic/38911-onclick-set-php-var/#findComment-187139 Share on other sites More sharing options...
EagerWolf Posted February 17, 2007 Author Share Posted February 17, 2007 is there any other way to solve this problem... Link to comment https://forums.phpfreaks.com/topic/38911-onclick-set-php-var/#findComment-187159 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.