View Single Post
Old Feb 25th, 2008, 10:50 PM   #1
MrMan9879
Programmer
 
MrMan9879's Avatar
 
Join Date: Sep 2005
Location: Nanaimo, BC, Canada
Posts: 95
Rep Power: 0 MrMan9879 is an unknown quantity at this point
Send a message via MSN to MrMan9879
Sending Forms with GET variables from other forms

Hi guys, I have another question... this time about using forms and the $_GET method.

Basically, for the website I'm building I have a news posting system, and I want to have a page where you can edit the posts. When you go to the editing page, I want to be able to order it by ID or title name.

My editing page is on my index.php, but I have a few pages on there, and I use a $_GET variable to get to them.
ie. index.php?act=post index.php?act=edit

I'm also using a $_GET variable for ordering the news articles to edit/delete
ie. index.php?act=edit&sort=newsdesc

But, I'm wondering how I can send the form that holds the sort variable to the page and also keep the act variable. I thought it might be as simple as this:

<form action="index.php?act=edit" method="get">
                <input type="radio" name="sort" value="newsdesc" />
           </form>

But, all this does is send it to index.php.

Does anyone know how I could accomplish this?
MrMan9879 is offline   Reply With Quote