Jump to content

Can not get $_Post, even though I Can Print_r it


dpw134

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.