Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   Parameter passing (http://www.velocityreviews.com/forums/t157958-parameter-passing.html)

Will Roberts 05-07-2004 03:12 PM

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.



The Doormouse 05-08-2004 01:24 AM

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.

Whitecrest 05-08-2004 01:41 AM

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

Adrienne 05-08-2004 06:52 AM

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

Mitja 05-08-2004 01:12 PM

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&param2=value2&param3=v alue3" etc.>



Roland Messerschmidt 05-08-2004 03:17 PM

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


Michael Wilcox 05-08-2004 05:11 PM

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/

Roland Messerschmidt 05-10-2004 05:52 PM

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.


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