Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: php-problem z formularzem
Forum PHP.pl > Forum > PHP
Misek
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.
amii
No bo plik z końcówką php3 nie jest parsowany przez interpretera php, zmień końcówkę na php
Misek
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
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.