![]() |
Parameter passing
I want to load a link in another frame (easy peasy), but now I want to pass
a parameter as part so that the html or php file can display the right stuff. I'm sure this must be easy, but I've been scratching my head and trying all sorts of increasingly desperate and bizarre code all afternoon. Someone please enlighten me. |
Re: Parameter passing
"Will Roberts" <willroberts@btinternet.com> wrote:
> I want to load a link in another frame (easy peasy), but now I want to > pass a parameter You need more fiber. Maybe that's what they mean by "Fiber Optics" ... =) The Doormouse -- The Doormouse cannot be reached by e-mail without her permission. |
Re: Parameter passing
In article <c7g90r$npb$1@sparta.btinternet.com>,
willroberts@btinternet.com says... > I want to load a link in another frame (easy peasy), but now I want to pass > a parameter as part so that the html or php file can display the right > stuff. I'm sure this must be easy, but I've been scratching my head and > trying all sorts of increasingly desperate and bizarre code all afternoon. > Someone please enlighten me. And you can't pass the parameter in the URL? (or in the form) -- Whitecrest Entertainment www.whitecrestent.com |
Re: Parameter passing
Gazing into my crystal ball I observed "Will Roberts"
<willroberts@btinternet.com> writing in news:c7g90r$npb$1@sparta.btinternet.com: > I want to load a link in another frame (easy peasy), but now I want to > pass a parameter as part so that the html or php file can display the > right stuff. I'm sure this must be easy, but I've been scratching my > head and trying all sorts of increasingly desperate and bizarre code > all afternoon. Someone please enlighten me. > > <a href="somepage.php?text=Supercalifragilisticexpial idocious" target="main">Some Page</a> -- Adrienne Boswell Please respond to the group so others can share http://www.arbpen.com |
Re: Parameter passing
Adrienne <arbpen2003@sbcglobal.net>
(news:Xns94E2F2CD8AF6Earbpenyahoocom@207.115.63.15 8) wrote: > Gazing into my crystal ball I observed "Will Roberts" > <willroberts@btinternet.com> writing in > news:c7g90r$npb$1@sparta.btinternet.com: > >> I want to load a link in another frame (easy peasy), but now I want >> to pass a parameter as part so that the html or php file can display >> the right stuff. I'm sure this must be easy, but I've been >> scratching my head and trying all sorts of increasingly desperate >> and bizarre code all afternoon. Someone please enlighten me. >> >> > > <a href="somepage.php?text=Supercalifragilisticexpial idocious" > target="main">Some Page</a> And for more params: <a href="foo.cgi?param1=value1¶m2=value2¶m3=v alue3" etc.> |
Re: Parameter passing
Hi,
Will posted just a few minutes before I wanted to do it... ;-) Adrienne <arbpen2003@sbcglobal.net> schrieb: > <a href="somepage.php?text=Supercalifragilisticexpial idocious" > target="main">Some Page</a> I tested this with a tiny page: <html> <body> <?php echo "display parameter: " . $abc; ?> </body> </html> Result of calling test.php?abc="xy" is only an error msg: "Notice: Undefined variable: abc in test.php on line 3" Is there a way to define a variable without assigning a value? Maybe somewhere in the header? Any hint? TIA Roland |
Re: Parameter passing
Roland Messerschmidt wrote:
>><a href="somepage.php?text=Supercalifragilisticexpial idocious" >>target="main">Some Page</a> > I tested this with a tiny page: > <html> > <body> > <?php echo "display parameter: " . $abc; ?> > </body> > </html> > Is there a way to define a variable without assigning a value? Using PHP, this variable is actually accessed as $_GET['text'] (substitute text for the appropriate name from the URL). -- Michael Wilcox, http://mikewilcox.t35.com/ |
Re: Parameter passing
Hi,
Michael Wilcox <mjwilco_usenet@yahoo.com> schrieb: > Using PHP, this variable is actually accessed as $_GET['text'] Thank's a lot, now it works as I want! On the other hand today I realized, that the ISP hosting the site doesn't speak PHP... :-( or :-), choose yourself! Roland |
| All times are GMT. The time now is 03:50 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.