| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Oct 2004
Posts: 105
![]() | A simple PHP Var? Hey. Using the following URL: http://video.search.yahoo.com/search...gle=2&ei=UTF-8 I would like to be able to set it so that the user can fill in a text box which would then change "THISBIT", how would I do this? |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Aug 2004
Posts: 363
![]() | I think this is what you want PHP Code: Hope that helps you PJ
__________________ L33TSig.net |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Member Join Date: Oct 2004
Posts: 105
![]() | Thanks ^ ^. The problem is though I need it the script to excecute. Code: <? $url="http://video.search.yahoo.com/search/video?p=$page"; ?> |
| |
| | #4 (permalink) |
| NamePros Regular Join Date: Aug 2004
Posts: 363
![]() | I did try doing that, thats what I thought I could do when I first had a bash, but I couldn't get it to do tha , thats as close as I could get it to what you wanted, it still searches what you type in ![]() PJ
__________________ L33TSig.net |
| |
| | #5 (permalink) |
| NamePros Member Join Date: Nov 2003 Location: Ontario, Canada
Posts: 127
![]() ![]() | I think you are over complicating it. You would just use a simple HTML form, with the get method. HTML Code: <form name="form1" method="get" action="http://video.search.yahoo.com/search/video"> Search for: <input type="text" name=p> <input type="submit" value="Search..."> <input type="hidden" value="FP-tab-vid-t" name="fr"> <input type="hidden" value="2" name="toggle"> <input type="hidden" value="UTF-8" name="ei"> </form> |
| |
| | THREAD STARTER #6 (permalink) |
| NamePros Member Join Date: Oct 2004
Posts: 105
![]() | Yeah, that is HTML input, but I need to script to call a certain thing based on the users request. Basicly, include a page such as the one shown below of which can be picked using the $page Varable. <? $url="http://video.search.yahoo.com/search/video?p=$page"; ?> |
| |
| | #7 (permalink) |
| NamePros Regular Join Date: Aug 2004
Posts: 363
![]() | What, you want your own page, that has a search bar, and then under that shows the results on your page though? PJ
__________________ L33TSig.net |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tutorial: Getting started with PHP (The Basics) | deadserious | Webmaster Tutorials | 60 | 11-17-2007 12:35 PM |
| Googlism - What does google think of you? | deadserious | The Break Room | 55 | 12-15-2005 10:09 AM |
| Where I can got domain news script? | bizbj | Domain Newbies | 8 | 11-05-2004 11:45 AM |
| Tutorial: Simple site management with the use of PHP and the query string(?page=1) | deadserious | Webmaster Tutorials | 8 | 10-09-2004 02:20 PM |