עבור לתוכן

עזרה/HTML יצירת דף קשר

Featured Replies

פורסם

שלום לכולם

בניתי דף צור קשר אבל יש לי בעיה בו

שאני ממלא פרטים והכל הוא לא שולח ליתפרטים לאיימיל

איני יודע למה .. בכל מקרה זה מה שהכנסתי לHTMK

תודה לעוזרים :xyxthumbs:

<td align="center" valign="top">

<form lang="he" method="post" action="mail.php" onsubmit="return isValid(this);">

<input type="hidden" name="subject" value="יצירת קשר בטופס ראשי">

<input type="hidden" name="redirect" value="/toda.html">

<input type="hidden" name="recipient" value="kobi1@bezeqint.net">

<input type="hidden" name="required" value="realname,Last_Name,Telephone">

<table border="0" width="95%" cellpadding="0" valign="top" style="font-size: 10pt; font-family: Arial; font-weight: bold; border-collapse: collapse; direction:ltr; text-align:right" bordercolor="#111111" id="table25">

<tr>

<td width="260" align="right" valign="top" style="font-size: 12px; color: #2F2F4F; font-family: 'Arial'; direction:rtl" height="24">

<input type="text" name="realname" style="width:300" size="20"></td>

<td width="120" align="right" style="font-size: 11pt; color: #ffffff; font-family: 'Arial'; direction:rtl" height="25">

<font color="#FF0000" style="font-size: 15pt">*</font>

שם פרטי</td>

</tr>

<tr>

<td width="260" align="right" valign="top" style="font-size: 12px; color: #2F2F4F; font-family: 'Arial'; direction:rtl" height="24">

<input type="text" name="Last_Name" style="width:300" size="20"></td>

<td width="120" align="right" style="font-size: 11pt; color: #ffffff; font-family: 'Arial'; direction:rtl" height="25">

<font color="#FF0000" style="font-size: 15pt">*</font>

שם משפחה</td>

</tr>

<tr>

<td align="right" valign="top" width="260" style="font-size: 12px; color: #2F2F4F; font-family: 'Arial'; direction:rtl" height="24">

<input type="text" name="email" style="width:300" size="20"></td>

<td align="right" width="120" style="font-size: 11pt; color: #ffffff; font-family: 'Arial'; direction:rtl" height="25">

<font color="#FF0000" style="font-size: 15pt">*</font>

כתובת דו"אל</td>

</tr>

<tr>

<td align="right" valign="top" width="260" style="font-size: 12px; color: #2F2F4F; font-family: 'Arial'; direction:rtl" height="24">

<input type="text" name="Telephone" style="width:300" size="20"></td>

<td align="right" width="120" style="font-size: 11pt; color: #ffffff; font-family: 'Arial'; direction:rtl" height="25">

<font color="#FF0000" style="font-size: 15pt">*</font>

מספר טלפון</td>

</tr>

<tr>

<td align="right" valign="top" width="260" style="font-size: 12px; color: #2F2F4F; font-family: 'Arial'; direction:rtl" height="24">

<input type="text" name="Tel_Nayad" style="width:300" size="20"></td>

<td align="right" width="120" style="font-size: 11pt; color: #ffffff; font-family: 'Arial'; direction:rtl" height="25">

<span lang="en-us">   </span>טלפון נייד</td>

</tr>

<tr>

<td align="right" valign="top" width="260" style="font-size: 12px; color: #ffffff; font-family: 'Arial'; direction:rtl" height="80">

<textarea lang="he" rows="10" name="Question" cols="20" dir="rtl" style="width:400; height:163"></textarea>

</td>

<td align="right" valign="top" width="120" style="font-size: 11pt; color: #00c6ff; font-family: 'Arial'; direction:rtl" height="80">

<span style="font-size: 11pt" lang="he">פרטים נוספים</span><span lang="en-us" style="font-size: 11pt"><br>

</span><span style="font-size: 11pt" lang="he">או

שאלות</span></td>

</tr>

<tr>

<td align="right" valign="top" width="260" style="font-size: 12px; color: #ffffff; font-family: 'Arial'; direction:rtl" height="35">

<input type="submit" value="&#1513;&#1500;&#1495;" name="B1"> </td>

<td align="right" valign="top" width="120" style="font-size: 11pt; color: #ffffff; font-family: 'Arial'; direction:rtl" height="35">

<span style="font-size: 11pt" lang="he"> שדות חובה </span>

<font color="#FF0000" style="font-size: 15pt">*</font></td>

</tr>

</table>

</form>

</td>

</tr>

<tr>

פורסם

תעשה את זה קריא ותכניס את זה לתיבת קוד , אגב למה אתה לא משתמש בקוד PHP ?

פורסם
  • מחבר

אני רוצה אבל כשאר אני נותן לו FROM הוא כותב לי שגיאה

זה הקוד שיש שם

אני נורא צריך עזרה כבר השתגעתי מזה

עם אתה יכול להביא לי את זה מסודר אני מאוד ישמח

<?php

$first= $_POST['first'];

$last = $_POST['last'];

$email = $_POST['email'];

$text = $_POST['text'];

$youremail = "פה זה האיימיל שלי";

$subject = $_POST['subject'];

if (isset($_POST["send"]) && $_POST["send"] == "שלח") {

if($first == '')

{

echo "לא מילאת/ה שם פרטי<br />";

}

if($last == '')

{

echo "לא מילאת/ה שם משפחה<br />";

}

if($email =='')

{

echo "לא מילאת/ה דואר אלקטרוני<br />";

}

if($text =='')

{

echo "לא מילאת/ה את תוכן ההודעה.<br />";

}

else

{

$contact = "שם פרטי : ".$_POST["first"]."

שם משפחה : ".$_POST["last"]."

דואר אלקטרוני : ".$_POST["email"]."

נושא : ".$_POST["subject"]."

תוכן ההודעה : ".$_POST["text"]."";

mail($youremail, $subject, $contact);

echo "<b><u>שלחת בהצלחה את ההודעה הבאה :</u></b><br />";

echo "<u>שם פרטי :</u> ".$_POST["first"]."<br />";

echo "<u>שם משפחה :</u> ".$_POST["last"]."<br />";

echo "<u>דואר אלקטרוני :</u> ".$_POST["email"]."<br />";

echo "<u>נושא :</u> ".$_POST["subject"]."<br />";

echo "<u>תוכן ההודעה :</u><br />".$_POST["text"]."<br />";

}

}

פורסם

תערוך את ההודעה שלך, סמן את כל הקוד שכתבת ותלחץ על הכפתור של קוד כדי שייראה נורמלי.

פורסם
  • מחבר

לא משנה היסתדרתי תודה בכל אופן

אפשר לנעול

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים