Help needed with code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zed420
Forum Commoner
Posts: 32
Joined: Wed Jun 04, 2008 11:24 am

Help needed with code

Post by zed420 »

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.

Code: Select all

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
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Re: Help needed with code

Post by panic! »

Post all code.
Post Reply