Thanks for the message.
Can you please tell me how to do session authentication?.

-murugesan
----- Original Message -----
From: "Cody Phanekham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 22, 2003 10:05 AM
Subject: FW: [PHP] How to open random Flash page with hyperlink?


-----Original Message-----
> From: murugesan [mailto:[EMAIL PROTECTED]
>  some more changes
>          <param name="movie" value="<?php echo $value ?>">
>          <embed src="<?php echo $value ?>"></embed>

Murugesan,

both ways are correct. Its just that i'm used to using the short open tag :)


<http://au.php.net/manual/en/configuration.directives.php#ini.short-open-tag
>
http://au.php.net/manual/en/configuration.directives.php#ini.short-open-tag


short_open_tag  <http://au.php.net/manual/en/language.types.boolean.php>
boolean


Tells whether the short form (<? ?>) of PHP's open tag should be allowed. If
you want to use PHP in combination with XML, you can disable this option in
order to use <?xml ?> inline. Otherwise, you can print it with PHP, for
example: <?php echo '<?xml version="1.0"'; ?>. Also if disabled, you must
use the long form of the PHP open tag (<?php ?>).

Note: This directive also affects the shorthand <?=, which is identical to
<? echo. Use of this shortcut requires short_open_tag to be on.


----- Original Message -----
From: "Cody Phanekham" <  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]>
To: <  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]>
Sent: Friday, August 22, 2003 9:32 AM
Subject: RE: [PHP] How to open random Flash page with hyperlink?


Phillip,

pretty close. only a few things that are missing/incorrect.
my corrections are marked by a #


> -----Original Message-----
> From: Phillip Pang [mailto:[EMAIL PROTECTED]
> // random_menu.html
> <head>
> <?php
> $i = rand(0,3);
> ?>
> </head>
>
> <body>
> <a href = " x <http://www.x.com/random.php?i=$i>
www.x.com/random.php?i=$i">x</a>
# you need to go back to php mode to use $i
<a href = "  <http://www.x.com/random.php?i> www.x.com/random.php?i=<? echo
$i ?>">x</a>

> </body>
>
> ---------------------------
>
> // random.php
> <head>
> <?php
> $i = $_post["i"];
# im pretty sure the value would be past via the GET method as the user
would be clicking the hyperlink, so it should look like
$i = $_GET["i"];

>
> if ($i = = 0){
# there shouldnt be any spaces for the comparison
if ($i == 0){

>     $value = "a";
> }
> else if ($i = = 1){
# there shouldnt be any spaces for the comparison
else if ($i == 1){

>     $value = "b";
> }
> ...etc.
# dont forget to get out of php mode
?>

> </head>
>
> <body>
> <object>
>         <param name="movie" value="$value">
# need to go back to php mode to use $value
         <param name="movie" value="<?php echo $value ?>">

>         <embed src="$value"></embed>
# need to go back to php mode to use $value
         <embed src="<?php echo $value ?>"></embed>

> </object>
> </body>
>
> Please help if you know how to do this. Thanks in advance.
>
> phil*

-murugesan



****************************************************************************
*********
This e-mail, including any attachments to it, may contain confidential
and/or personal information.
If you have received this e-mail in error, you must not copy, distribute, or
disclose it, use or take any action
based on the information contained within it.

Please notify the sender immediately by return e-mail of the error and then
delete the original e-mail.

The information contained within this e-mail may be solely the opinion of
the sender and may not necessarily
reflect the position, beliefs or opinions of Salmat on any issue.

This email has been swept for the presence of computer viruses known to
Salmat's anti-virus systems.

For more information, visit our website at  www.salmat.com.au.
****************************************************************************
*********


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to