Jump to content

Search Form


dmccabe

Recommended Posts

Ok I am working a small search form and the form probably works, however, because I am trying to make it in to a bit of an all encompassing webpage then I have the following structure.

 

The page with the form on is:

 

http://localhost/test/?page=corpaccount&action=viewall

 

This lists all the accounts with a seach box at the top:

 

			<tr>
				<td><form name='searchfrm' method='GET' action='?page=corpaccount&action=viewall'>
					<input type='text' name='search' width='10' /><input type='submit' value='Search' />
					</form>
				</td>
			</tr>

 

The problem comes when the search is clicked it goes to:

 

http://localhost/test/?search=xyz

 

and I need it to be:

 

http://localhost/test/?page=corpaccount&action=viewall&search=xyz

 

instead.

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/98811-search-form/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.