|
Posted by Richard Marx on 01/21/06 00:45
"Greg N." <yodel_dodel@yahoo.com> wrote in message
news:43D0C049.5000009@yahoo.com...
> Richard Marx wrote:
>> Thanks, can you please elaborate on how to do this as you have time? I'm
>> not expert in the area of PHP either.
>
> This is the calling page, (say, index.html):
>
> <html><body>
> <p>The following link will bring you to page2.php,
> and pass the variable planet with the value "mars" to it.
> <p>
> <a href=page2.php?planet=mars>See how it works</a>
> </body></html>
>
> This is the called page (page2.php)
>
> <html><body>
> <?php $planet = $_GET['planet']; ?>
> <h1>This planet is <?php echo "$planet"; ?></h1>
> </body></html>
Thanks Greg!
Navigation:
[Reply to this message]
|