Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> php-problem z formularzem
Misek
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 29.06.2013

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


Witam.Mam problem iż: Pobrałem sobie formularz kontaktowy (contact.php3 i email.php3). Zawartosc contactu wkleiłem do index.htlm a email.php3 zostawilem bez zmian. wrzucilem all na serwer(friko.pl) programem fillezilla. Problem zaczyna sie tu. gdy klikam wyślij pobiera mi email.php3
ligapolska.doprzodu.com to jest strona testowa. prosze o jak najszybsza pomoc i dziękuje za odpowiedzi.
Go to the top of the page
+Quote Post
amii
post
Post #2





Grupa: Zarejestrowani
Postów: 728
Pomógł: 76
Dołączył: 12.06.2009

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


No bo plik z końcówką php3 nie jest parsowany przez interpretera php, zmień końcówkę na php


--------------------
gry flash online
Dobry hosting i tanie odnowienia domen firma: masternet.
Zarabianie bez wysiłku na domenach bez ruchu: prolink.
Go to the top of the page
+Quote Post
Misek
post
Post #3





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 29.06.2013

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


ok. koncówki zmienione i działa tylko ze mi nie przychodza wiadomości na email nic.
INDEX.HTLM
Kod
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Contact Us! </TITLE>
<META NAME="Generator" CONTENT="www.4cm.com">
<META NAME="Author" CONTENT="John B. Abela | aka: Yokhannan">
<META NAME="Keywords" CONTENT="Contact Form!">
<META NAME="Description" CONTENT="Just a simple Contact Form writen in PHP!">
</HEAD>

<BODY BGCOLOR="#FFFFFF" text="#000000">
<center>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Contact Us! </TITLE>
<META NAME="Generator" CONTENT="www.4cm.com">
<META NAME="Author" CONTENT="John B. Abela | aka: Yokhannan">
<META NAME="Keywords" CONTENT="Contact Form!">
<META NAME="Description" CONTENT="Just a simple Contact Form writen in PHP!">
</HEAD>

<BODY BGCOLOR="#FFFFFF" text="#000000">
<center>


<TABLE border=0 cellPadding=0 cellSpacing=0 width=564>
<TR>
   <TD bgColor=black vAlign=center><center><FONT color=#ffffff face="Arial, Helvetica" size=3><B>Kontakt do Mnie !</B></FONT></center></TD>
</TR>
<TR>
  <td>
<form action="email.php" method="post">
<table align="center" width="100%">
<tr>
<td align=right><font face="verdana,arial" size="1"><B>Imie/Nick:</td>
<td><font face="verdana,arial" size="1"><input name="name" size=28 value=""></td>
</tr>
<tr>
<td align=right><font face="verdana,arial" size="1"><B>Twój email:</td>
<td><font face="verdana,arial" size="1"><input name="email" size=28 value=""></td>
</tr>

<tr>
<td colspan=2><font face="verdana,arial" size="1"><B>tresc:<BR><textarea name="Comments" cols=50 rows=8 wrap=soft></textarea></td>
</tr>
<tr>
<td></td>
<td><font face="verdana,arial" size="1"><input type="submit" value="Wyślij"></td>
</tr>
</table>
</form>
</TD>
</TR>
</TABLE>

<!-- PLEASE LEAVE THE FOLLOWING CREDIT!! -->
<!-- PLEASE LEAVE THE FOLLOWING CREDIT!! -->

<!-- PLEASE LEAVE THE ABOVE CREDIT!! -->
<!-- PLEASE LEAVE THE ABOVE CREDIT!! -->
</center>
</BODY>
</HTML>

EMAIL.PHP
Kod
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Contact Us! </TITLE>
<META NAME="Generator" CONTENT="www.4cm.com">
<META NAME="Author" CONTENT="John B. Abela | aka: Yokhannan">
<META NAME="Keywords" CONTENT="Contact Form!">
<META NAME="Description" CONTENT="Just a simple Contact Form writen in PHP!">
</HEAD>

<BODY BGCOLOR="#FFFFFF" text="#000000">
<center>
<table width="100%" bgcolor="black" cellspacing=0 cellpadding=0 valign=center border=0><tr><td><center><font face="Verdana" size="2" color="white"><B>Contact Us!</B></font></td></tr></table>

<?
/* Let's set a few Variables to handle all the dirty work! */

    $site_name = "Name of Your Site";
    $site_email = "mój adres email";  # (ie:  mój adres email )

# DO NOT EDIT ANYTHING BELOW THIS LINE #
# DO NOT EDIT ANYTHING BELOW THIS LINE #
# DO NOT EDIT ANYTHING BELOW THIS LINE #

/* This will handle the variables passed from the contact.php3 file */

PRINT "<CENTER>";
PRINT "Hello, $name.";
PRINT "<BR><BR>";
PRINT "Thank you for your interest in our site!<BR><BR>";
PRINT "Your submission has been sent to: $email as a confirmation email.";
PRINT "</CENTER>";

?>

<?
mail("$email", "Thank You From $site_name!", "$namen
Thank you $name for submitting your question/comments!
We will handle your submission in the order of arrival.
If needed, we will email you back. If you do not receive
a reply within 48 hours, please email $site_email!");

mail("$site_email",
"$site_name Contact Form",
"Submitted By: $name
Email: $email
URL: $URL
Business: $BusinessName
Location: $BusinessLocation
Comments:
$Comments
$HTTP_USER_AGENT");
?>
<p><br>
<!-- PLEASE LEAVE THE FOLLOWING CREDIT!! -->
<!-- PLEASE LEAVE THE FOLLOWING CREDIT!! -->
<table width="80%" cellspacing=0 cellpadding=0 valign=center border=0><tr><td><center><font face="Verdana" size="1">This Page Uses Scripts Created By: <a href="http://www.4cm.com/cgi-bin/tracker/jump.cgi?ID=7" target="_blank" OnmouseOver="window.status=' Click To Visit This Site! '; return true" OnMouseOut="window.status=' '; return true">www.4cm.com</a>.</font></td></tr></table>
<!-- PLEASE LEAVE THE ABOVE CREDIT!! -->
<!-- PLEASE LEAVE THE ABOVE CREDIT!! -->
</center>
</BODY>
</HTML>

moze cos zle zrobilem .

jak moge to zrobie refff... bo to pilne jest
Go to the top of the page
+Quote Post

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: 20.08.2025 - 11:26