jamila Posted April 15, 2013 Share Posted April 15, 2013 how can i fix it, i can't get the value from the form so it can be deleted : $id=$_POST['id']; Quote Link to comment https://forums.phpfreaks.com/topic/276965-i-cant-get-a-value-from-a-form/ Share on other sites More sharing options...
Barand Posted April 15, 2013 Share Posted April 15, 2013 Have you checked if any POST data is sent? echo '<pre>',print_r($_POST, true),'</pre>'; Quote Link to comment https://forums.phpfreaks.com/topic/276965-i-cant-get-a-value-from-a-form/#findComment-1424808 Share on other sites More sharing options...
Solution Strider64 Posted April 15, 2013 Solution Share Posted April 15, 2013 (edited) I'm guessing you don't have method="post" (print_r to check) <form class="login-style" action="" method="post"> Edited April 15, 2013 by Strider64 Quote Link to comment https://forums.phpfreaks.com/topic/276965-i-cant-get-a-value-from-a-form/#findComment-1424809 Share on other sites More sharing options...
budimir Posted April 15, 2013 Share Posted April 15, 2013 Try to use: $id=$_REQUEST['id']; It will probably work. It's hard to say without seeing the code for form. I suggest using POST or GET. For REQUEST you should plan you're code. Quote Link to comment https://forums.phpfreaks.com/topic/276965-i-cant-get-a-value-from-a-form/#findComment-1424817 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.