josephbupe Posted December 4, 2012 Share Posted December 4, 2012 (edited) Hi, How can i edit a variable set in code through a webpage? I have two such variable I always change in code, but I want to change them through a webpage, namely: $counter==5 and $perpage=10 if($counter==5) { echo "</tr>\n<tr>\n<td colspn=2> \n</tr>\n<tr>\n"; $counter=0; } and //Number of items to display per page $perpage = 10; if(isset($_GET["page"])) { $page = intval($_GET["page"]); } else { $page = 1; } I will appreciate. Joseph Edited December 4, 2012 by josephbupe Quote Link to comment https://forums.phpfreaks.com/topic/271581-editing-variables-through-webfpage/ Share on other sites More sharing options...
BrettHartel Posted December 4, 2012 Share Posted December 4, 2012 How do you want to change them? I am confused. Can you offer more information. Quote Link to comment https://forums.phpfreaks.com/topic/271581-editing-variables-through-webfpage/#findComment-1397416 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.