klkempter Posted May 7, 2009 Share Posted May 7, 2009 Hi All; I'm new to PHP. Here's what I want to do: 1) create a search box/form 2) add code to the form that will perform the following: a) search the database for the search term(s) b) redirect the user to a NEW page c) based on the results from the search print the resulting items on the new page Thanks in advance Link to comment https://forums.phpfreaks.com/topic/157273-search-form-questions/ Share on other sites More sharing options...
Ken2k7 Posted May 7, 2009 Share Posted May 7, 2009 Is this a request? Link to comment https://forums.phpfreaks.com/topic/157273-search-form-questions/#findComment-828862 Share on other sites More sharing options...
klkempter Posted May 7, 2009 Author Share Posted May 7, 2009 My mistake. I'm looking for how to do this, documentation, ideas, code snippets, etc.. Thanks again Link to comment https://forums.phpfreaks.com/topic/157273-search-form-questions/#findComment-828863 Share on other sites More sharing options...
Ken2k7 Posted May 7, 2009 Share Posted May 7, 2009 How much experience do you have with xHTML, PHP and MySQL? Link to comment https://forums.phpfreaks.com/topic/157273-search-form-questions/#findComment-828873 Share on other sites More sharing options...
klkempter Posted May 7, 2009 Author Share Posted May 7, 2009 I have some HTML experience, I'm a wiz at perl, just now learning PHP. Databases are not a problem for me MySQL, PostgreSQL, etc. I understand the basics of forms, just don't know how to get the form to force the user to a new page once they press the search button Link to comment https://forums.phpfreaks.com/topic/157273-search-form-questions/#findComment-828877 Share on other sites More sharing options...
Ken2k7 Posted May 7, 2009 Share Posted May 7, 2009 Oh, look up the action attribute of the FORM tag. Link to comment https://forums.phpfreaks.com/topic/157273-search-form-questions/#findComment-828879 Share on other sites More sharing options...
klkempter Posted May 7, 2009 Author Share Posted May 7, 2009 ok, thanks Link to comment https://forums.phpfreaks.com/topic/157273-search-form-questions/#findComment-828882 Share on other sites More sharing options...
premiso Posted May 7, 2009 Share Posted May 7, 2009 You got lucky today. I just finished my Simple SQL Search tutorial. Hopefully that helps you out! EDIT: It is not "everything" you want, but that should get you rolling on it. Link to comment https://forums.phpfreaks.com/topic/157273-search-form-questions/#findComment-828908 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.