Hello, I know how to pass the search query in php: $searchquery = ($_GET['query']); echo "<form action=\"/news2.php\" method=\"get\"><h3><font size=\"5\" color=\"#00FFFF\">Next page of News Articles about</font><input type=\"submit\" name=\"query\" value=\"$searchquery\"></h3></p></form>"; Could you please tell me how to do this with HTML code? Thanks
you can't do it with JUST html. You will need to utilize either php or javascript to make it happen. -P
Just to be sure we're on the same page here, you're talking about passing a variable (in this case a search query) from one page to another, correct? If so here are a few good articles on the subject (utilizing javascript): http://www.codeave.com/javascript/code.asp?u_log=7057 http://www.developer.com/lang/other/article.php/639611
if what your searching for is in a database, i'd just use php/mysql. a simple mysql_query will do just fine. www designplace org/scripts php?page=1&c_id=25 is a great tutorial for you =) (wont let me link it yet)