For the sake of understandability and adhearing to programming standards you should still quote your indices!
In a developement environment its extremely helpful to have error_reporting set to E_ALL, it helps catch many blunders. It tells you when a variable is not defined (When you may want one defined!). It also helps to tighten up the flow of a script since everything is defined very strict and explicitly there is less room for security exploitations. So that being said I strongly encourage you to move in that direction. Its troubleshooting & security benefits outweigh its nuisances.
$datex = $_POST['programDate'];
$timex = $_POST['programTime'];
This is acceptable because it is contained inside of quotes, e.g. the indices are treated like strings first and not constants:
print "$_GET[datex] = date and $_GET[timex] = time";
I would still prefer to do this instead:
print "{$_GET['datex']} = date and {$_GET['timex']} = time";
Also there is no predefined constant named date.
Quote:
quote:
You are right nikolai, perhaps there is no way to really do this.
I put <? ?> around my variables, but now I get:
= date and = time
so I'll just rethink this and add a form with a hidden field.
|
It can be done!
<p><a href='show_addProgramAsana.php?datex=<?php echo $_POST['programDate'];?>&timex=<?php echo $_POST['programTime']; ?>'>Identify Asanas</a></p>
: )
Rich
:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::