Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Parameter passing

Reply
Thread Tools

Parameter passing

 
 
Will Roberts
Guest
Posts: n/a
 
      05-07-2004
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.


 
Reply With Quote
 
 
 
 
The Doormouse
Guest
Posts: n/a
 
      05-08-2004
"Will Roberts" <> 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.
 
Reply With Quote
 
 
 
 
Whitecrest
Guest
Posts: n/a
 
      05-08-2004
In article <c7g90r$npb$>,
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
 
Reply With Quote
 
Adrienne
Guest
Posts: n/a
 
      05-08-2004
Gazing into my crystal ball I observed "Will Roberts"
<> writing in
news:c7g90r$npb$:

> 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
 
Reply With Quote
 
Mitja
Guest
Posts: n/a
 
      05-08-2004
Adrienne <>
(news:Xns94E2F2CD8AF6Earbpenyahoocom@207.115.63.15 wrote:
> Gazing into my crystal ball I observed "Will Roberts"
> <> writing in
> news:c7g90r$npb$:
>
>> 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.>


 
Reply With Quote
 
Roland Messerschmidt
Guest
Posts: n/a
 
      05-08-2004
Hi,

Will posted just a few minutes before I wanted to do it...

Adrienne <> 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

 
Reply With Quote
 
Michael Wilcox
Guest
Posts: n/a
 
      05-08-2004
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/
 
Reply With Quote
 
Roland Messerschmidt
Guest
Posts: n/a
 
      05-10-2004
Hi,

Michael Wilcox <> 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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing parameter to function not expecting parameter Mister B C Programming 8 08-26-2010 08:01 AM
decltype as a template parameter when containing reference to anothertemplate parameter. Isti C++ 2 04-19-2010 10:01 PM
without declare parameter [double square(parameter)] return 0 in main WanHongbin@gmail.com C Programming 5 10-01-2008 03:31 AM
Using declaration inside first template parameter as default valuefor second template parameter. Stuart Redmann C++ 5 12-14-2007 08:42 AM
Parameter List / Parameter Block / Anything patterns... mast2as@yahoo.com C++ 4 03-29-2007 09:37 PM



Advertisments
 



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