User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 373,108 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,646 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting

Redirect Output

Join Date: Aug 2007
Location: Cavite,Philippines
Posts: 473
Reputation: ryan_vietnow is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 62
ryan_vietnow's Avatar
ryan_vietnow ryan_vietnow is offline Offline
Posting Pro in Training

Re: Redirect Output

  #6  
Apr 21st, 2008
like what I have said before,put the search key( the one that is inputted by the user in the textbox in a variable then perform the search query in the page you are redirecting to.

for example this is the page where you will redirect:

  1. $var=$_GET['var'];
  2. //put your search query here...
  3. $query="Select * from table where field LIKE '%$var%'";
  4. $data=mysql_query($query);
  5. //put your display result here...
  6. while($result = mysql_fetch_array( $data ))
  7. {
  8. ?>
  9. <a href="http://www.someurl.com/<? $result['field'] ?>"> <? $result['field'] ?> </a>
  10. <br>
  11. <?
  12. }
  13. ?>
  14.  
"death is the cure of all diseases..."
http://ryantetek.wordpress.com
Reply With Quote  
All times are GMT -4. The time now is 5:22 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC