Jump to content
php.lv forumi

Forma, ja viņai ir get, neaizsūtās uz pieprasīto lapu


yeahz

Recommended Posts

Man ir šāda forma

 

	<form action="index.php?page=cik" method="get">

<select name="dod">
<option value="1" selected="selected">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>

<select name="cik">
<option value="1" selected="selected">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>

<input type="submit" value="OK" />

</form>

 

Ja tur formā ir get, tad nestrādā tā kā es gribētu, es gribētu lai aizsūtās šādi index.php?page=cik&dod=1&cik=3, bet nonāku pie šāda index.php?dod=1&cik=3, kāpēc tā page=cik tur pazūd? Ar post viss izdodas, bet es gribu lai ir ar get.

Link to comment
Share on other sites

atrakais variants

<form action="index.php" method="get">
<input type="hidden" name="page" value="cik">

tas ir izmanto sleptos ( HIDDEN ) laukus , jo get tiek izveidots pilniia no jauna ...

Un padoma vai vispar vajag GET ... tomer smukak buutu ar POST ... Un Tikai to page=cik padot ar Get (ja nu savadak nevar) ...

Edited by Grey_Wolf
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...