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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Wednesday, October 22, 2003 4:50 AM
To: [EMAIL PROTECTED]
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



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

Reply via email to