RE: [PHP-DB] Re: using <href=abc.php/?day=......>
| From: | Robert Sossomon | Date: | Wed, 22 Oct 2003 14:20:29 +0000 |
| Subject: | RE: [PHP-DB] Re: using <href=abc.php/?day=......> | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-31266@lists.php.net to get a copy of this message | ||
Right, sorry I left that part out because it basically depends on what
you are doing..
/*** Test Page ***/
<?php
$start_day = date;
$end_day = date2;
$display_block = "<a href=\"abc.php?day=$start_day\"> >
</a><br>";
$display_block .= "<a href=\"abc.php?day=$end_day\"> <
</a><br>";
?>
<html><body>
<? print $display_block; ?>
</body></html>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I get mail........ I exist.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----Original Message-----
From: lists@shemeshdirectory.co.il [mailto:lists@shemeshdirectory.co.il]
Sent: Wednesday, October 22, 2003 4:50 AM
To: php-db@lists.php.net
Subject: RE: [PHP-DB] Re: using <href=abc.php/?day=......>
BECOMES:
<a href="abc.php?day=$start_day"> > </a>
This works only if it's within an echo statement:
echo "<a href='abc.php?day=$start_day'>";
and you must make sure to either use single quotes around the
href link, or else escape the double quotes with a backslash:
echo "<a href=\"abc.php?day=$start_day\">";
Alternatively, you can do it this way:
<a href="abc.php?day=<? echo "$start_day; ?>">
(ie embed the echo within a regular HTML tag)
-Lisi
___________________________________________________________
Sent by ePrompter, the premier email notification software. Free
download at http://www.ePrompter.com.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php