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 Link to comment https://forums.phpfreaks.com/topic/18109-get-conflict/ 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] Link to comment https://forums.phpfreaks.com/topic/18109-get-conflict/#findComment-77608 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! Link to comment https://forums.phpfreaks.com/topic/18109-get-conflict/#findComment-77697 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.