pranshu82202 Posted December 15, 2011 Share Posted December 15, 2011 Suppose i have a table with around 10 entries in which one column contains the id and the second column contains a checkbox... If a checkbox a selected and the button (below the table) is pressed then i want to delete the columns corresponding the checked checkboxes.... I am not getting how sgould i pass the get variable on the link of the button??? -Pranshu Agrawal [email protected] Link to comment https://forums.phpfreaks.com/topic/253225-check-box/ Share on other sites More sharing options...
pranshu82202 Posted December 15, 2011 Author Share Posted December 15, 2011 I can do it with POST method... But i want to do it with GET method........ Also the number of rows are variable.......... Link to comment https://forums.phpfreaks.com/topic/253225-check-box/#findComment-1298111 Share on other sites More sharing options...
xyph Posted December 15, 2011 Share Posted December 15, 2011 <form method="get" action="yourfile.php"> Link to comment https://forums.phpfreaks.com/topic/253225-check-box/#findComment-1298242 Share on other sites More sharing options...
jaisol Posted December 15, 2011 Share Posted December 15, 2011 On the server side if(isset($_GET['page_no_id'])) { $page_no = $_GET['page_no_id']; // do whatever code you want } On the web page you want <a href=\"test.php?page_no_id=page_no\">$page_no_id</a> test.php is the the file that contains the server side code. Thats for a hyperlink.After the "?" is the name of the $_GET['var_name'] the "=" is the value you want. for a submit button I think it works just the same as $_POST['] Try doing var_dump($_GET['your_var_name']) Link to comment https://forums.phpfreaks.com/topic/253225-check-box/#findComment-1298271 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.