Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Web Programming
Reload this Page PHP Contact form isnt running, strange because i changed nothing in it, and it worked
Reply
 
Thread Tools Display Modes
(#1 (permalink))
Old
Junior Member
Whitey is on a distinguished road
 
Posts: 5
Join Date: Mar 2012
Default PHP Contact form isnt running, strange because i changed nothing in it, and it worked - 03-11-2012, 01:22 PM

Hey
Since beginning of my website i changed completely nothing on it, im wondering what happend since the contact script was working in first year yet stopped now. the message on site says "message sent" but i cant see it in my email box (also spam)
sincere thanks for help
ofc im on 000webhost free

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
$to = "xxxxxxx@gmail.pl";
$from = $_REQUEST['email'] ;
$headers = "From: $from";
$email = $_REQUEST['email'] ;
$subject = $_REQUEST['name'] ;
$message = $_REQUEST['comment'] ;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
</body>
</html>
remove (spam) from adress
contact form: http://porzeczkaczarna.(spam)com/kontakt.html
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 6,620
Join Date: Jul 2009
Location: Spain
Default 03-11-2012, 02:05 PM

You can try modifying your file to see if the problem is the php mail function.

PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
   $to 
"xxxxxxx@gmail.pl";
   
$from $_POST['email'] ;
   
$headers "From: $from";
   
$email $_POST['email'] ;
   
$subject $_POST['name'] ;
   
$message $_POST['comment'] ;
   if  ( 
mail($to$subject$message$headers) )
         echo 
"<p>Mail Sent.</p>";
   else echo
"<p>Email could not be sent. Try again later.</p>";
?>
</body>
</html>


Recuerda realizar copias de seguridad de tus sitios web. Si este mensaje te ayudó puedes pulsar sobre el botón karma
Reply With Quote
(#3 (permalink))
Old
Junior Member
Whitey is on a distinguished road
 
Posts: 5
Join Date: Mar 2012
Default 03-11-2012, 03:20 PM

i just tried that, but all i can see is confirming message from site (highlited in html code = message sucessfuly sent)

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="description" content="Uprawa Czarnej porzeczki, swierza porzeczka czarna" />
        <meta name="keywords" content="porzeczka, czarna, plantacja, gospodarstwo, uprawa, świerza, kontakt" />
        <link rel="shortcut icon" href="http://www.000webhost.com/forum/images/favicon.ico"/>
        <title>Gospodarstwo zajmujace sie uprawa czarnej porzeczki</title>
        <link rel="stylesheet" type="text/css" href="css/reset.css"  />
        <link rel="stylesheet" type="text/css" href="css/main.css" />
        <link rel="stylesheet" type="text/css" href="css/nivo-slider.css"/>
        <link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" />
        <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="js/jquery.nivo.slider.js"></script>
        <script type="text/javascript" src="js/jcarousellite_1.0.1.pack.js"></script>
        <script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script>
        <script type="text/javascript" src="js/jquery.validate.pack.js"></script>        
        <script type="text/javascript" src="js/jquery.example.js"></script>
        <script type="text/javascript" src="js/nivo_init.js"></script>
        <script type="text/javascript" src="js/custom.js"></script>
        <script type="text/javascript" src="js/form_.js"></script>
        <script type="text/javascript" src="js/cufon-yui.js" ></script>
        <script type="text/javascript" src="js/Myriad_Pro_300.font.js"></script>
        <script type="text/javascript">
            Cufon.replace('h1,h2,h3,h4,h5');
        </script>
    </head>

    <body>
        <div class="header">
          <div class="wrapper">
  <ul class="page_nav">
                    <li><a href="index.html" title="Informacje o nas">O Nas</a></li>
                    <li></li>
                    <li><a href="galeria.html" title="Zdjecia z naszej plantacji - porzeczka czarna">Galeria</a></li>
                    <li><a href="porzeczka_czarna_artykuly.html" title="Artykuly o porzeczce czarnej">Porzeczka i zdrowie</a></li>                  
                    <li><a class="current last" href="kontakt.html">Kontakt</a></li>
                </ul> <!-- END PAGE NAV -->
            </div><!-- END WRAPPER --> 
        </div> <!-- END HEADER --> 
        <div class="wrapper ie_zindex">
            <a href="http://porzeczkaczarna.com/"><img class="logo" src="http://www.000webhost.com/forum/images/porzeczka.png" alt="Porzeczka" /></a>
</div>        
        <div class="primary"> 
            <div class="wrapper"><!--[if IE]>
                    <br class="clearf" />
                <![endif]-->                
                <div class="main_content">
                    <h1>Zapraszamy do kontaktu</h1>
                    <form  action="contact.php" method="post" id="commentform">
                      <p><input class="" id="cname" name="name" value="" />
                        <label for="cname">Firma*</label></p>
                        <p><input id="cemail" name="email" class="" value="" />
                        <label for="cemail"> Email*</label>
                        </p>
                        <p>
                    <label for="ccomment">Wiadomość*</label></p>
                        <p><textarea name="comment" rows="5" cols="8" class="" id="ccomment" ></textarea></p>
                        <p class="submit"><input name="submit" type="submit" id="submit" tabindex="5" value="Send Message" /></p>
                    </form>
                    <div id="mail_success">
                        <h3 class="no_hr">Dziekujemy</h3>
                        <p>Twoja wiadomosc została wysłana</p>
                    </div>  
                </div><!-- END MAIN CONTENT -->
                <div class="sidebar">
                    <h2 class="text_widget">&nbsp;</h2>
                <iframe width="425" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.pl/maps?f=q&amp;source=s_q&amp;hl=pl&amp;geocode=&amp;q=szczecin&amp;sll=53.422628,14.559631&amp;sspn=0.158965,0.308647&amp;ie=UTF8&amp;hq=&amp;hnear=Szczecin,+Zachodniopomorskie&amp;ll=53.422628,14.545898&amp;spn=5.238954,9.338379&amp;z=6&amp;iwloc=A&amp;output=embed"></iframe><br /><small><a href="http://maps.google.pl/maps?f=q&amp;source=embed&amp;hl=pl&amp;geocode=&amp;q=szczecin&amp;sll=53.422628,14.559631&amp;sspn=0.158965,0.308647&amp;ie=UTF8&amp;hq=&amp;hnear=Szczecin,+Zachodniopomorskie&amp;ll=53.422628,14.545898&amp;spn=5.238954,9.338379&amp;z=6&amp;iwloc=A" style="color:#0000FF;text-align:left">Wyświetl większą mapę</a></small>
                    <p>&nbsp;</p>
</div><!-- END SIDEBAR -->
            </div><!-- END WRAPPER -->                       
        </div><!-- END PRIMARY -->       
        <div class="footer">
            <div class="wrapper">
                <div class="footer_nav">
                    <ul>
                        <li class="first"><a href="index.html" title="Informacje o naszej uprawie">O Nas</a></li>
                        <li><a href="galeria.html" title="Zdjecia z naszej plantacji - porzeczka czarna">Galeria</a></li>
                        <li><a href="porzeczka_czarna_artykuly.html" title="Artykuly o porzeczce czarnej">Porzeczka i zdrowie</a></li>
                        <li class="last"><a href="kontakt.html" title="kontakt z nami" class="current" >Kontakt</a></li>
                    </ul>
              </div>
                <div class="notes">&copy; 2010 </div>            	            
            </div><!-- END WRAPPER -->
        </div><!-- END FOOTER --> 
    </body>

</html>
i wouldnt bother you with this if this thing never worked.. but it did for like a year.
Reply With Quote
(#4 (permalink))
Old
lobrc's Avatar
Administrator
lobrc will become famous soon enough
 
Posts: 5,112
Join Date: Jan 2010
Default 03-11-2012, 06:25 PM

The problem is most likely with the receiving end then. Have you checked your spam folder?


If you're having problems with your account, please submit a ticket from your members area.

--

Free Script Installation Service
Reply With Quote
(#5 (permalink))
Old
Junior Member
Whitey is on a distinguished road
 
Posts: 5
Join Date: Mar 2012
Default 03-11-2012, 07:09 PM

yes i did, i even checked with different email adress.
Reply With Quote
(#6 (permalink))
Old
lobrc's Avatar
Administrator
lobrc will become famous soon enough
 
Posts: 5,112
Join Date: Jan 2010
Default 03-11-2012, 07:24 PM

Have you contacted your email provider?


If you're having problems with your account, please submit a ticket from your members area.

--

Free Script Installation Service
Reply With Quote
(#7 (permalink))
Old
Junior Member
Whitey is on a distinguished road
 
Posts: 5
Join Date: Mar 2012
Default 03-11-2012, 07:30 PM

hm not yet.. its gmail.. you think the fault is on they side?
i checked it with wp.pl, ill do same with yahoo.com shortly, ill let you know if it worked.
Reply With Quote
(#8 (permalink))
Old
Junior Member
Whitey is on a distinguished road
 
Posts: 5
Join Date: Mar 2012
Default 03-11-2012, 07:58 PM

well it ddnt work either..

some more details:
i ddnt log into 00webhost for over a year and because of that i lost some of the functionality and gain popups each time i wisited site, after i logged the banners disapeared but the form still isnt working

with limited funcionality, after filling and confirming form i recieved "Mail sent" message on site, after logging the message changed to the one i used to see "twoja wiadomość została wysłana" - in both cases i ddnt recieve any email.

hope this will be helpfull
thanks for help in advance

Last edited by Whitey; 03-11-2012 at 08:07 PM.
Reply With Quote
(#9 (permalink))
Old
Junior Member
JHOVELCH is on a distinguished road
 
Posts: 1
Join Date: Jun 2012
Default Same Problem - 06-04-2012, 05:44 PM

I am having the same problem on my site. the form was working before, but now it is not sending? tried a few different email addresses. not working at all and I am not receiving an error message when I test it out.

so confused!
Reply With Quote
(#10 (permalink))
Old
Fucs's Avatar
Junior Member
Fucs is on a distinguished road
 
Posts: 4
Join Date: Sep 2012
Location: Estonia
Default 09-08-2012, 03:55 PM

Same problem. PHP $mailto = 'whatever@gmail.com' ; dont work anymore since august 2012. Tried a five different email addresses (2 gmail.com ; hotmail.com ; hot.ee ; yandex.com) and nothing work. The form and php was working before more than one year. Does anyone know where is the problem?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com