NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page A simple PHP Var?

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

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 03-18-2005, 06:13 PM THREAD STARTER               #1 (permalink)
NamePros Member
 
soapbath's Avatar
Join Date: Oct 2004
Posts: 105
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, 06:36 PM   #2 (permalink)
.PJ
NamePros Regular
 
.PJ's Avatar
Join Date: Aug 2004
Posts: 363
.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>
????: NamePros.com http://www.namepros.com/programming/76238-a-simple-php-var.html
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, 07:12 PM THREAD STARTER               #3 (permalink)
NamePros Member
 
soapbath's Avatar
Join Date: Oct 2004
Posts: 105
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, 04:05 AM   #4 (permalink)
.PJ
NamePros Regular
 
.PJ's Avatar
Join Date: Aug 2004
Posts: 363
.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, 07:19 AM   #5 (permalink)
NamePros Member
Join Date: Nov 2003
Location: Ontario, Canada
Posts: 127
eagle12 will become famous soon enougheagle12 will become famous soon enough
 



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, 11:08 AM THREAD STARTER               #6 (permalink)
NamePros Member
 
soapbath's Avatar
Join Date: Oct 2004
Posts: 105
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, 11:12 AM   #7 (permalink)
.PJ
NamePros Regular
 
.PJ's Avatar
Join Date: Aug 2004
Posts: 363
.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, 11:15 AM THREAD STARTER               #8 (permalink)
NamePros Member
 
soapbath's Avatar
Join Date: Oct 2004
Posts: 105
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


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

Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:23 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger