[thelist] PHP_SELF / Contact Form
Jens Brueckmann
jens.brueckmann at gmail.com
Thu Jul 29 13:56:36 CDT 2010
> <form name="mycontactForm" action="<?php echo $_SERVER['PHP_SELF']; ?> method="get" >
>
> HTML source output action="index.php"
>
> so while my contact.php file is located inside mypages folder one level below index.php what should
> I do so the contact form works just fine.
Hi Davoud,
as the action attribute of your form will always have the same value,
there is no need to insert the value as a variable.
Just write action="contact.php" and your form should work.
Cheers,
jens
--
Jens Brueckmann
http://www.yalf.de
More information about the thelist
mailing list