Hallo! I have a simple form with one text field. action attribute is "index.php?menu=search". when clicked submit, however, the form is sent without parameters 'menu = search'. Ie action is "index.php?val=sometext". What disappeared from the URL 'menu=search'. How can I fix this?? <form method="get" action="index.php?menu=search"> <input type="text" name="val"> </form> HTML: How do I make URL to index.php?menu=search&val=sometext ?? Thanx!
when you are using get method, all values automatically will be added to url. but i'm not sure about "menu = search" rather you can take an input hidden field called 'menu' and with value 'search' and finally you get your desired url index.php?menu=search&val=sometext you must use get method
<form method="get" action="index.php"> <input type="text" name="val"> <input type="hidden" name="menu" value="search"> </form>