2011-12-08, 07:46 PM
2011-12-08, 08:03 PM
yes, you can. use the path for search.php file ... { eg. <form action="forum URL/search.php" ........ }
2011-12-09, 03:31 AM
Thank you for the response. What do i put after the search.php to search for a keyword? I've tried a few things...
[forumurl]/search.php?keyword=donuts
[forumurl]/search.php?keyword=donuts
2011-12-09, 07:18 PM
^ I could not get it - why you need key words ? I thought you are adding a search form outside forum !
2011-12-09, 09:17 PM
Yes I am, but I need to pass search.php the form information don't I?
I have a form, when you submit action=search.php but all that does it take you to the search.php page it doesnt actually run the query.
I have a form, when you submit action=search.php but all that does it take you to the search.php page it doesnt actually run the query.
2011-12-12, 12:50 PM
try like this
<form method="post" action="http://community.mybb.com/search.php">
<input name="action" value="do_search" type="hidden">
<input name="postthread" value="1" type="hidden">
<input name="forums" value="all" type="hidden">
<input name="showresults" value="threads" type="hidden">
<input class="textbox" name="keywords" value="Search..." onfocus="if(this.value == 'Search...') { this.value = ''; }" onblur="if(this.value=='') { this.value='Search...'; }" size="25" type="text">
<input class="button" value="Search" type="submit">
<br class="clear">
</form>