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 Quote 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? Quote 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 Quote 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? Quote 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 Quote 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. Quote 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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/157273-search-form-questions/#findComment-828908 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.