My English isn't good but i need help with my problem. I have script in PHP and MYSQL (edit user profile). When is user log true so all variables are in $SESSION array. I need send variable to other page and array $POST not found when $_SESSION is on.

My examples first page script

echo "<form action='edit.php?action=save' method='POST'>";
echo "<h1 class='profileuser'><a>About me</a></h1>";
echo "<textarea class='edit' name='infoedit' rows='3' cols='104' maxlength='500' '></textarea>";
echo "<p></p>";
echo "<h1 class='profileuser'><a>hobbies</a></h1>";
echo "<textarea class='edit' name='hobbies_edit' rows='3' cols='104' maxlength='500'></textarea>";
echo "<a class='profileuser' href='edit.php?action=save'></a>";
echo "</form>";

And at second page i can't show content of textarea

echo $_POST['infoedit'];

    hm.. That is odd.

    The $SESSION should not interfere with your $POST array.

    In your edit.php place:

    echo "Post array: <br />
    <pre>";
    print_r($_POST);
    echo "</pre>";
    

    to check what is being posted.

      Write a Reply...