Isoss Posted August 20, 2006 Share Posted August 20, 2006 I am trying to submit a form with the method "get" in the same page which is: media.php?page=sermonsarchive Now the form is as following: [sup]<FORM ACTION="" METHOD="GET"> <SELECT NAME="preacher" OnChange="this.form.submit();"> <OPTION SELECTED > اختر الواعظ {foreach item=preachers from=$select_preachers} <OPTION VALUE="{$preachers.id_p}" {if $smarty.get.preachers==$preachers.id_p}SELECTED{/if} >{$preachers.preacher}</option> {/foreach} </SELECT></FORM>[/sup]When I submit the url will be changed into: media.php?preacher=1But I still need the page query! I tried action="?page=sermonsarchive" but didn't work!I know I can solve this by using post but I don't want to I just need to get GET to work so url would look like: media.php?page=sermonsarvhice&preacher=1Any help will be appriciated.Thanks.Isos Quote Link to comment Share on other sites More sharing options...
sasa Posted August 20, 2006 Share Posted August 20, 2006 insert in form[code]<input type="hidden" name="page" value="sermonsarvhice">[/code] Quote Link to comment Share on other sites More sharing options...
Isoss Posted August 20, 2006 Author Share Posted August 20, 2006 Hey thanks! How did I miss that?! Thanks a bunch! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.