filename minhagrid.php
<?php
echo"<form action='minhagrid.php?Codigo=";echo"8'";echo " method='GET'>";
echo" <fieldset>";
echo" <legend>Pesquisa:</legend>";
echo" Código: <input type='text' size='10' /><br />";
echo" Designação: <input type='text' size='30' /><br />";
echo" <input type='Submit' value='Pesquisar'/>";
echo" </fieldset>";
echo"</form>";
?>
The form action goes to minhagrid.php and not minhagrid.php?Codigo=8
Btw the file returns to his self, but i need the parameter Codigo=8
Any help?
Why this code doesn't work?
Moderator: General Moderators
-
mariolopes
- Forum Contributor
- Posts: 102
- Joined: Sun May 22, 2005 7:08 am
Re: Why this code doesn't work?
When the form uses method=get it'll overwrite what you put in the action.
Code: Select all
<?php
echo"<form action='minhagrid.php' method='GET'>";
echo" <input type='hidden' name='Codigo' value='8'>";
echo" <fieldset>";
echo" <legend>Pesquisa:</legend>";
echo" Código: <input type='text' size='10' /><br />";
echo" Designação: <input type='text' size='30' /><br />";
echo" <input type='Submit' value='Pesquisar'/>";
echo" </fieldset>";
echo"</form>";
?>-
mariolopes
- Forum Contributor
- Posts: 102
- Joined: Sun May 22, 2005 7:08 am
Re: Why this code doesn't work?
It works with post.
Thank you
Thank you