View Single Post
Old Feb 26th, 2008, 7:43 AM   #2
kruptof
Professional Programmer
 
kruptof's Avatar
 
Join Date: May 2006
Location: UK - London
Posts: 329
Rep Power: 3 kruptof is on a distinguished road
Re: Sending Forms with GET variables from other forms

Quote:
Originally Posted by MrMan9879 View Post
<form action="index.php?act=edit" method="get">
<input type="radio" name="sort" value="newsdesc" />
 </form>
You could use a hidden field set it's value to the action, or just stick it in the $_SESSION array.

<form action="index.php?act=edit" method="get">
                <input type="radio" name="sort" value="newsdesc" />
                 <input type="hidden" name="action" value="<?php print $_GET['action']" />
           </form>
__________________
Quote:
When I was young it seemed that life was so wonderful,a miracle, oh it was beautiful, magical.
Now watch what you say or they'll be calling you a radical,a liberal, oh fanatical, criminal. Oh won't you sign up your name,we'd like to feel you're acceptable, respectable, oh presentable, a vegetable
kruptof is offline   Reply With Quote