Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Contact.PHP nie dziala, wszystko na stronie działa tylko nie contact
22saser22
post
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 14.05.2014

Ostrzeżenie: (0%)
-----


Witam

Mam taki problem z contact.php

Gdy wysyłam wiadomość otrzymuje taki komunikat "Sorry can't allow you access today"

Gdy wysyłam pusty formularz również ta sama wiadomość.

Może ktoś wie jak to naprawić, lub zmienić na jakiś zwykły prosty script.

Chciałbym jednak zachować wygląd formularza kontaktowego.

Wszystko mi działa na stronie tylko nie ten contact.php.

Z góry dziekuję za pomoc i sugestie.

pozdrawiam

to jest contact.php

Kod
<?

$your_email = "mój@tlen.pl";

$headers= "From: ".$_POST['name']." <".$_POST['email'].">\r\n";
$headers.='Content-type: text/html; charset=utf-8';
mail($your_email, $_POST['subject'],  "
<html>
<head>
<title>Contact Message</title>
</head>
<body>
    Contact Message<br><br>
    Name : ".$_POST['name']."<br>
    Email : ".$_POST['email']."<br>
    Telephone : ".$_POST['telephone']."<br><br>
    Subject : ".$_POST['subject']."<br>
    Message : <br>".$_POST['message']."<br>
</body>
</html>" , $headers);
header("Location: ./index.htm?page=_contact_message.htm");
?>




to jest _contact.htm


Kod
<h1>CONTACT INFORMATIONS</h1>
        <img src="images/image9.jpg" class="left" alt="image" title="image"/>
        <br/><br/>
        <p class="left"><strong>YOUR NAME</strong> <br/>
        12 Silver Road, NEW-York, CA91064<br/>
        <strong>Toll Free</strong>: 1-811-123-1234<br/>
        <strong>Office</strong>: 1-811-123-1234<br/>
        <strong>Fax</strong>: 1-811-123-1234<br/>            
    <strong>Mail</strong>: <a href="mailto:yourmail@yoursite.com">yourmail@yoursite.com</a></p>

        <div class="clearboth"></div>
        <br/>                        
        <br/>
        <h1>CONTACT FORM</h1>
        <br/>
        <form method="post" action="contact.php">
        <fieldset><legend>your informations</legend>
        <p><label for="name" class="text">Full name :</label><input class="text" type="text" name="name" id="name"></p>
        <p><label for="email" class="text">Email Address :</label><input class="text" type="text" name="email"  id="email" ></p>
        <p><label for="telephone" class="text">Telephone :</label><input class="text" type="text" name="telephone"  id="email" ></p>
        </fieldset>
        <fieldset><legend>your message</legend>

        <p><label for="subject" class="text">Subject :</label><input class="text" type="text" name="subject" id="subject"></p>
        <p><label for="message" class="text">Message :</label><textarea class="text" name="message" id="message"></textarea></p>
        <p><label class="text"> </label></p>
        </fieldset>
        <p class="center"><input class="button" type="submit" value="Send"></p>
        </form>



a to jest contact_message.htm


Kod
<p class="center">Your message was successfully sent.</p>
<br/>
<p class="center"><a href="java script:showPage('_contact.htm',selected_button);">Go back</a></p>



Teraz to nawet nie pokazuje sie ten komunikat j/w.

Po kliknięciu na send wyskakuje zawartość pliku contact.php.


Jesli ktos moze to naprawic, podam login i pasy do stronki .

Moje gg 9298836

Ten post edytował 22saser22 14.05.2014, 21:20:01
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 13:01