On Wednesday 08 November 2006 11:10, Don Gould wrote:
> Save: <?= $_POST["Save"]?>
>
> Gives me: Save:
> Notice: Undefined index: Save in /var/www/html/o/MACOwner.php on line 15
>
> Clearly I need to test that it's defined first. How do I do that in php?
>
> Cheers Don
There is a NZ PHP users group --> phpug.org.nz
As for your problem,
<?php
// use the full open tags for portability
if (!empty($_POST['Save'])) {
print $_POST['Save'];
}
// you don't need to close the php tag unless you want to
// switch back to HTML output.
//hads
--
http://nicegear.co.nz
New Zealand's VoIP supplier