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; 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. 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. 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
Archived
This topic is now archived and is closed to further replies.