Reply to Re: Form to append text to end of choice of URL's

Your name:

Reply:


Posted by Dan on 11/08/43 11:55

I'm sorry I am trying to figure this out and I need a little more help.
I am fairly new to this and while I understand the logic I am not sure
exactly where to place this. Can I just use a regular form? If so, do
I have a separate submit button for each site I want to use? Thanks
again for your help,
-Dan


BKDotCom wrote:
> $sites = array(
> 'marketwatch' =>
> 'http://bigcharts.marketwatch.com/intchart/frames/frames.asp?symb=%s',
> 'someothersite' => 'http://www.blah.com/?ticker=%s&something=foo',
> );
>
> // loop through the sites
> foreach ( $sites as $url )
> {
> echo sprintf($url,$_GET['symbol']); // replaces %s with your symbol
> }

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация