Re: [PHP] Re: undefined index and php

2005-11-10 Thread Richard Lynch
On Thu, November 10, 2005 8:38 am, Mark Rees wrote: > It's not good practice (in fact I don't even know if it's possible) to It's definitely "possible" in the sense that you can cram things in there. You can store your lunch in the trash can and pull it back out when it's time to eat. Neither of

[PHP] Re: undefined index and php

2005-11-10 Thread Mark Rees
> I tried this to set the value... > > if (!isset($_POST['heading'])) { > $_POST ['heading'] = ""; > } > > because the following line give the notice 'undefined index' BEFORE the > submit button has been pressed.. > > What everyone else said, but also: It's not good practice (in fact I don't