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!
<?php
//Adding a new section
if(isset($submitsection))
{
echo "Yes I got in!";
sectionAdd($sectionname);
//Resetting variables so you can make a new .one withouT
//refreshing the page
$submitsection = "";
$sectionname = "";
}
?>
The thing is nothing happens, and iv'e spent a very long time trying to figure it out... Not even tha text Yes I got in! shows, soo....
?>
<?php
if(isset($_POST['sectionname']) && ($_POST['sectionname'] != ""))
{
sectionAdd($_POST['sectionname']);
//Resetting variables so you can make a new one without
//refreshing the page
$_POST['sectionname'] = "";
}
?>
so i changed the stuff to use $_POST -> but that wasn't the problem still...very strange, cuz' sometimes it worked and sometimes it didn't...but then i used the $sectionname variable instead and it's works like a charm
thx McGruff i'll start using tha < /> thing
And thanks for going trough and changing the text and stuff...
Why i use double-qoutes is because i can use variables without having to '.$var.' them instead i can just put it rigth in there and PHPedit higlights it nicely so i can se it..