[thelist] PHP_SELF / Contact Form

Jens Brueckmann jens.brueckmann at gmail.com
Thu Jul 29 15:26:56 CDT 2010


>
> Using action="<?php 'mypages/contact.php' ?>" method="post" >
>
> I get this:
> Warning:  mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user '***'@'localhost' (using password: NO)
> in /home/***/***/***/mypages/contact.php on line 27
>
> and html source code it says action=" "
>
> I have not set up any users and that I do not connect to the database within contact.php file

As you do not have an established connection to a database, this
function is useless. Just scrap it from your input validation.
Concerning the action attribute, use plain action="contact.php" or
action="mypages/contact.php" without the php PI


-- 
Jens Brueckmann
http://www.yalf.de


More information about the thelist mailing list