Jump to content


This topic is now archived and is closed to further replies.


GET conflict!

Recommended Posts

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:
  <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>

When I submit the url will be changed into: media.php?preacher=1
But 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=1

Any help will be appriciated.



Share this post

Link to post
Share on other sites
insert in form
<input type="hidden" name="page" value="sermonsarvhice">

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.