Thanks Hads...

I'm on that list to.

Cheers Don

Hadley Rich wrote:
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


--
Don Gould
www.thinkdesignprint.co.nz - www.tcn.bowenvale.co.nz - www.bowenvale.co.nz - www.hearingbooks.co.nz - www.buxtonsquare.co.nz - SkypeMe: ThinkDesignPrint - Good ideas: www.solarking.co.nz

Reply via email to