dpw134 Posted February 6, 2011 Share Posted February 6, 2011 Here's the result of my problem: Array ( [nav_create_title] => hel [nav_visible] => 1 [category_position] => 4 ) ( ! ) Notice: Undefined index: category_postion in C:\wamp\www\tryitandbuyit\includes\category_create_process.php on line 7 Call Stack # Time Memory Function Location 1 0.0010 370336 {main}( ) ..\category_create_process.php:0 Here's how I'm trying to assign and echo $_post. print_r($_POST); $category_pos = $_POST["category_postion"]; $nav_title=$_POST["nav_create_title"]; $nav_visible=$_POST["nav_visible"]; echo $nav_title; echo $category_pos; echo $nav_visible; As you can see, it prints the correct value and name from the array... why the heck can't I assign or echo it? Here is how I am sending it from the other page in a form (it used to be simple, but I've been trying every work around i can think of: <?php $result=mysql_query("SELECT * FROM category WHERE visible='1' ORDER BY position ASC"); $row=mysql_fetch_array($result); $positionID=$row['position']; $position=$row['position']; $selectname= "Select A Position:<br />"; $selectname .= "<select name="; $selectname .= "'category_position'"; $selectname .= ">"; echo $selectname; $rownumber=mysql_num_rows($result); $rownumber_temp=$rownumber+1; For($i=1; $i<=$rownumber_temp; $i++) { echo "<option value= $i>" . $i . "</option></br>"; } $selectname2 = "echo \"<br />\""; $selectname2 .= "echo \"<br />\""; $selectname2 .= "echo \"</select>"; echo $selectname2; Quote Link to comment https://forums.phpfreaks.com/topic/226889-can-not-get-_post-even-though-i-can-print_r-it/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 6, 2011 Share Posted February 6, 2011 Check your spelling. Quote Link to comment https://forums.phpfreaks.com/topic/226889-can-not-get-_post-even-though-i-can-print_r-it/#findComment-1170688 Share on other sites More sharing options...
dpw134 Posted February 6, 2011 Author Share Posted February 6, 2011 Thank you very much. I have been staring at this for 2 days, and thought I had the spelling right. This forum rules, I'll try not to abuse it with stupid questions like this again. Thank you for helping out a retard. Quote Link to comment https://forums.phpfreaks.com/topic/226889-can-not-get-_post-even-though-i-can-print_r-it/#findComment-1170690 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.