Jump to content

Check box


pranshu82202

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.