Jump to content
php.lv forumi

Form un "dziļās" $_GET lapas


-=HELLBENDER=-

Recommended Posts

Sveiki..

Vai ir iespējams izmantojot form nosūtīt informāciju uz lapu, kura ir citā lapā.. Nemāki tieši paskaidrot, tādēļ ielikšu piemēru.

 

	<form name="input" action="http://index.php?asd" method="get">
	IP: <input type="text" name="ip" /><br/>
	<input type="submit" value="Banot!" />

 

Lapa atrodas lapa.php?page=acp&cat=addban. Iesūtot form, ip adresei vajadzētu nonākt uz lapa.php?page=acp&cat=addban&ip=, bet aiziet uz lapa.php?ip=. Kā to labot?

Link to comment
Share on other sites

<form name="ievade" action="http://kurnuvajag.kur/lapa.php" method="get">
<input type="hidden" name="page" value="acp"/>
<input type="hidden" name="cat" value="addban"/>
<label for="ip">IP: </label><input type="text" name="ip" /><br/>
<input type="submit" value="Banot!" />
</form>

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