|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Passing other data in the url when using the get method with a form
<form method = "get" action = "index.php?sec=search">
that doesnt seem to work. it passes the form input into the url but the sec=search it not there. it does work with the post method. how can i get it to work with get? |
|
#2
|
||||
|
||||
|
You can't do it like that.
Use this instead: Code:
<input type="hidden" name="sec" value="search">
__________________
Spreading knowledge, one newbie at a time. Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions IE7: the generation 7 browser new in a world of generation 8 browsers. Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around. |
|
#3
|
|||
|
|||
|
wow ! thats smart!
thanks! |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Passing other data in the url when using the get method with a form |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|