Passing Variables
Posted: Wed Dec 02, 2009 4:17 pm
See http://www.homejotter.com/new.index.php.
I am new to PHP. I want to get the college that the person has chosen and then I want to convert that college to the id.
Then when the person presses "Search" the results.php would be results.php?college=$collegeID, thus showing results only for that specific college. I know how to display the results, but I am just asking how to pass the variable.
This is the code relating to that college combo box and the search button. It is in HTML:
Any help is wanted...
Thanks in advance.
I am new to PHP. I want to get the college that the person has chosen and then I want to convert that college to the id.
Then when the person presses "Search" the results.php would be results.php?college=$collegeID, thus showing results only for that specific college. I know how to display the results, but I am just asking how to pass the variable.
This is the code relating to that college combo box and the search button. It is in HTML:
Code: Select all
<select name="college1" class="textfield" id="college1" value="" tabindex="2"></select>
<a href="results.php?college="$college1""><input name="search2" type="submit" class="search" id="search2" value="Search »"/></a>Thanks in advance.