RE: Re: using <href=abc.php/?day=......>

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux