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']; 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>'; 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...
Strider64 Posted April 15, 2013 Share Posted April 15, 2013 I'm guessing you don't have method="post" (print_r to check) <form class="login-style" action="" method="post"> 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. 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
Archived
This topic is now archived and is closed to further replies.