JustinK101 Posted November 3, 2006 Share Posted November 3, 2006 How do I push the values from my array $row into the $_POST array. I am doing an edit page and returning the results from mysql into the form elements. I have the following but it inst working. Thanks.foreach($row AS $_POST => $val ) { $$_POST = stripslashes( $val );} Link to comment https://forums.phpfreaks.com/topic/26085-copy-elements-from-row-into-_post/ Share on other sites More sharing options...
Orio Posted November 3, 2006 Share Posted November 3, 2006 foreach($row as $key => $val) $_POST[$key]=$val;Orio. Link to comment https://forums.phpfreaks.com/topic/26085-copy-elements-from-row-into-_post/#findComment-119256 Share on other sites More sharing options...
JustinK101 Posted November 3, 2006 Author Share Posted November 3, 2006 DIDNT seem to work, I did the following: foreach($row as $key => $val) $_POST[$key]=$val; print_r($_POST);And $_POST is an empty array(). Link to comment https://forums.phpfreaks.com/topic/26085-copy-elements-from-row-into-_post/#findComment-119258 Share on other sites More sharing options...
JustinK101 Posted November 3, 2006 Author Share Posted November 3, 2006 I got it working, my query was funked, thanks much! Link to comment https://forums.phpfreaks.com/topic/26085-copy-elements-from-row-into-_post/#findComment-119260 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.