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

pranshu.a.11@gmail.com

Link to comment
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.