Jump to content


Photo

GET conflict!


  • Please log in to reply
2 replies to this topic

#1 Isoss

Isoss
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 20 August 2006 - 03:41 PM

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:

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

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.

Thanks.

Isos

#2 sasa

sasa
  • Staff Alumni
  • Advanced Member
  • 2,804 posts
  • LocationHrvatska

Posted 20 August 2006 - 04:01 PM

insert in form
<input type="hidden" name="page" value="sermonsarvhice">


#3 Isoss

Isoss
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 20 August 2006 - 07:40 PM

Hey thanks! How did I miss that?! Thanks a bunch!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users