Jump to content

Need help with code


zed420

Recommended Posts

Hi All

Can someone point me in right direction please. I'm trying to send data from one page to another by using Checkboxes. First why doesn't header take the id and news to newsDisplay.php page even thou by clicking display button the page comes up but WITHOUT the id and news rows. The second code works but I have to make TWO attempts, I check the checkbox and click nothing happens but when I do the same again it works and does produces right result. ??? ???

 

		if($_POST['display']) {
		foreach($_POST as $id) {
		//header('location: newsDisplay2.php?id=$id&news=$news');
		echo "<form action=\"newsDisplay2.php?id=$id&news=$news\" method=\"POST\">"; 
		}
	}

Thanks in advance

Zed

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.