Re: PHP tutorial

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for all the feedback. :-) I'll include your feedback as soon as I
find time (probably next weekend).

Regards,

Martin

Am 24.11.2013 21:50, schrieb Ashley Sheridan:
> On Sun, 2013-11-24 at 21:39 +0100, Martin Christian wrote:
>> Hi,
>>
>> I've written a PHP DB/Template tutorial at:
>>
>> http://christianix.de/php-tutor/index.html
>>
>> I hope it will be useful to someone.
>>
>> Regards,
>>
>> Martin
>>
> 
> It looks good, but there are a couple of things I would amend.
> 
> You use this construct to check for POST data, but it will actually
> throw warnings if no POST data is sent:
> 
> !($_POST["name"] && $_POST["email"] && $_POST["bear"])
> 
> In this case you should use the isset() function.
> 
> In step 7 you're using POST variables directly as part of your mail()
> call without any kind of validation, so you're essentially opening it up
> to becoming a spam relay script.
> 
> Aside from that, looks good, and you've got plenty of detail in there to
> explain what you're doing. :)
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux