Reply to Re: Passing Variables

Your name:

Reply:


Posted by meltedown on 11/17/05 21:25

Khai wrote:
> ZeldorBlat said:
>
>>You just said that the 3 pages are
>>"linked" off the main page -- I read that as meaning that there are
>>hyperlinks or forms that post to those pages...
>
>
>
> Yes, that's correct. What I mean to ask is, do I have to use a form button
> or something for the action to trigger? Or can I create the hyperlink to
> run some function that posts those vars to whichever page I send to the
> function?
>
You can put the variable in a hyper link.
http://site.com/mypage.php?cit=cinncinati

In mypage.php , $_GET will be an array with a member named 'city' with a
value of 'cincinatti';
$mycity=$_GET[city];

> function postmyvars (strPageName) {
>
> }
>
> or something-ish. I've yet to actually create any user-defined functions..
>
>

[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

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