Problem with code for a form that connects with MySQL

Codes here !

Moderators: macek, egami, gesf

Post Reply
User avatar
freshnet
php-forum Active User
php-forum Active User
Posts: 342
Joined: Tue Feb 22, 2011 8:19 am
Location: Canada

Re: Problem with code for a form that connects with MySQL

Post by freshnet » Tue Aug 14, 2012 2:41 am

You have started a second <?php block when I think you meant to end the first one.

Code: Select all

mail($my_email,$subject,$message,$headers);

<?php

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Should be

Code: Select all

mail($my_email,$subject,$message,$headers);

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests