[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 03-18-2005, 05:13 PM   #1 (permalink)
NamePros Member
 
soapbath's Avatar
 
Join Date: Oct 2004
Posts: 105
14.00 NP$ (Donate)

soapbath is on a distinguished road


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?
soapbath is offline  
Old 03-18-2005, 05:36 PM   #2 (permalink)
.PJ
NamePros Regular
 
.PJ's Avatar
 
Join Date: Aug 2004
Posts: 369
0.50 NP$ (Donate)

.PJ is on a distinguished road


I think this is what you want

PHP Code:
<?php

echo"<form action=http://video.search.yahoo.com/search/video?ei=UTF-8&fr=sfp&p=$p method=post>
Search for: <input type=text name=p>
<input type=submit value=Search...>
</form>"
;

?>


Hope that helps you

PJ
__________________
L33TSig.net
.PJ is offline  
Old 03-18-2005, 06:12 PM   #3 (permalink)
NamePros Member
 
soapbath's Avatar
 
Join Date: Oct 2004
Posts: 105
14.00 NP$ (Donate)

soapbath is on a distinguished road


Thanks ^ ^.

The problem is though I need it the script to excecute.

Code:
  <? $url="http://video.search.yahoo.com/search/video?p=$page";  ?>
Now I need $page withen the php script to be controled by the input box, its so it can be called (included in a way)
soapbath is offline  
Old 03-19-2005, 03:05 AM   #4 (permalink)
.PJ
NamePros Regular
 
.PJ's Avatar
 
Join Date: Aug 2004
Posts: 369
0.50 NP$ (Donate)

.PJ is on a distinguished road


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
.PJ is offline  
Old 03-19-2005, 06:19 AM   #5 (permalink)
NamePros Member
 
Join Date: Nov 2003
Location: Ontario, Canada
Posts: 91
80.80 NP$ (Donate)

eagle12 is on a distinguished road


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> 
eagle12 is offline  
Old 03-19-2005, 10:08 AM   #6 (permalink)
NamePros Member
 
soapbath's Avatar
 
Join Date: Oct 2004
Posts: 105
14.00 NP$ (Donate)

soapbath is on a distinguished road


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"; ?>
soapbath is offline  
Old 03-19-2005, 10:12 AM   #7 (permalink)
.PJ
NamePros Regular
 
.PJ's Avatar
 
Join Date: Aug 2004
Posts: 369
0.50 NP$ (Donate)

.PJ is on a distinguished road


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
.PJ is offline  
Old 03-19-2005, 10:15 AM   #8 (permalink)
NamePros Member
 
soapbath's Avatar
 
Join Date: Oct 2004
Posts: 105
14.00 NP$ (Donate)

soapbath is on a distinguished road


No, I am building a meta search engine and I am parsing the results, but for that I need to allow the user to select which engines to parse.
soapbath is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Getting started with PHP (The Basics) deadserious Webmaster Tutorials 60 11-17-2007 11:35 AM
Googlism - What does google think of you? deadserious The Break Room 55 12-15-2005 09:09 AM
Where I can got domain news script? bizbj Domain Newbies 8 11-05-2004 10:45 AM
Tutorial: Simple site management with the use of PHP and the query string(?page=1) deadserious Webmaster Tutorials 8 10-09-2004 01:20 PM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 12:21 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85