Post form data as array? or.. Please share input!
Posted: Fri May 28, 2004 7:24 pm
Hi
I have a page I'm working on and its a bit confusing to me right now..
I havent been coding for a little while maybe thats the reason I cant seem to figure out this problem.
I use a database(mysql) to store menu links for my site. What I am trying to do is pull the links from the database and use form input fields to control the order that they are displayed in the menu.
example of page..
file_name ----------------------------- link_order
home.php .................................. (input here)
contact.php ................................ (input here)
about.php .................................. (input here)
Now the (input here) is where the text input field is. Using this to add a number(1,2,3,4,5.. so on) to control the order.
How can I do this? to post the form and correctly process it... I am trying to use the page file name and the order value like this
$query="UPDATE pages SET link_order='$link_order' WHERE file_name='$file_name'";
Please help!! I'm sitting here looking at this page as you are reading it
Thanks... Chris
I have a page I'm working on and its a bit confusing to me right now..
I havent been coding for a little while maybe thats the reason I cant seem to figure out this problem.
I use a database(mysql) to store menu links for my site. What I am trying to do is pull the links from the database and use form input fields to control the order that they are displayed in the menu.
example of page..
file_name ----------------------------- link_order
home.php .................................. (input here)
contact.php ................................ (input here)
about.php .................................. (input here)
Now the (input here) is where the text input field is. Using this to add a number(1,2,3,4,5.. so on) to control the order.
How can I do this? to post the form and correctly process it... I am trying to use the page file name and the order value like this
$query="UPDATE pages SET link_order='$link_order' WHERE file_name='$file_name'";
Please help!! I'm sitting here looking at this page as you are reading it
Thanks... Chris