[FX.php List] else

Kevin Futter kfutter at sbc.melb.catholic.edu.au
Thu Jun 15 16:49:57 MDT 2006


On 15/6/06 9:23 PM, "Steve Winter" <steve at bluecrocodile.co.nz> wrote:

> Jonathan,
> 
> The first thing that strikes me is in the line;
> if ($_POST[phone1] == "") {
> You're missing the quotes from the parameter name, it needs to be;
> if ($_POST['phone1'] == "") {

Actually, the quotes are optional in this case - PHP will parse the
variables out quite fine without them. However, it *is* good form to use the
quotes, since this allows you to be consistent across the board, which is
always a good thing.

-- 
Kevin Futter
Webmaster, St. Bernard's College
http://www.sbc.melb.catholic.edu.au/



------------------------------------------
This e-mail and any attachments may be confidential.  You must not disclose or use the information in this e-mail if you are not the intended recipient.  If you have received this e-mail in error, please notify us immediately and delete the e-mail and all copies.  The College does not guarantee that this e-mail is virus or error free.  The attached files are provided and may only be used on the basis that the user assumes all responsibility for any loss, damage or consequence resulting directly or indirectly from the use of the attached files, whether caused by the negligence of the sender or not.  The content and opinions in this e-mail are not necessarily those of the College.




More information about the FX.php_List mailing list