Advertisement

02.08.2008 at 06:32AM PST, ID: 23147781
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.2

Safari losing POST information when submitting a form to a PHP page

Asked by nick601 in Safari Web Browser, PHP Scripting Language, WebApplications

Tags: , , , ,

Community,

I have seen several related questions but none to my point, so I'm asking this:

I created a web form (standard html) that submits to a PHP page. The submitted data is just fine when submitted in Firefox and IE, but in Safari (both Mac and PC) no data is received by the PHP page.

The code of the form is here, below is the PHP code to work with the input.

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
<script language="JavaScript" type="text/javascript">
function Enable_Submit()
{
	if (document.form1.Bedingungen.checked)
	{
		document.form1.Submit.disabled = false;
	}
	else
	{
		document.form1.Submit.disabled = true;
	}
}
</script>
 
// the form
 
<table width="99%" border="0" align="center" cellpadding="10" cellspacing="0">
    <tr>
      <td width="75%" valign="top"><form action="http://www.kyudo-frankfurt.de/antrag.php" method="POST" enctype="enctype=text/plain" name="form1">
          <p>Name:<br>
            <input name="Name" type="text" id="Name" maxlength="50">
          </p>
          <p>Stra&szlig;e:<br>
            <input name="Strasse" type="text" id="Strasse" maxlength="50">
          </p>
          <p>PLZ/Ort:<br>
            <input name="PLZ" type="text" class="plzinput" id="PLZ" maxlength="5">
            <input name="Ort" type="text" class="ortinput" id="Ort" maxlength="50">
          </p>
          <p>Telefon:<br>
            <input name="Telefon" type="text" id="Telefon" maxlength="30">
          </p>
          <p>E-Mail:<br>
            <input name="Mail" type="text" id="Mail" maxlength="50">
          </p>
          <p>Kommentar:<br>
              <textarea name="Kommentar" cols="52" rows="5" id="Kommentar"></textarea>
		</p>
		<p><input class="checkbox" type="checkbox" name="Bedingungen" value="ja" onClick="JavaScript:Enable_Submit()">
            Ich habe die <a href="PDF/Bedingungen_Einsteigerkurs.pdf" target="_blank">Bedingungen zur Anmeldung</a>, die <a href="PDF/Dojo-Etikette.pdf">Dojo-Etikette</a> und die <a href="PDF/Sicherheitsordnung.pdf">Sicherheitsordnung</a> gelesen und akzeptiert.
		  </p>
 
 
          <p> <input class="button" type="submit" name="Submit" value="Abschicken" disabled>
            <input class="button" name="Reset" type="reset" id="Reset" value="Zur&uuml;cksetzen">
          </p>
        </form></td>
    </tr>
  </table>
 
//what follows is the PHP code to process the form data
 
<?php
if ($_POST['Name'])
{
	$MailTo = 'information@kyudo-frankfurt.de';
	$Subject = '[Kyudo-Frankfurt] Anmeldung zum Einsteigerkurs';
	$AdditionalHeader = 'From: webform@kyudo-frankfurt.de' . "\r\n" .
    			'Reply-To: webform@kyudo-frankfurt.de' . "\r\n" .
				'Return-Path: webform@kyudo-frankfurt.de' . "\r\n";
	$Body = 'Die folgenden Daten wurden im Formular übermittelt:'. "\r\n\r\n";
	$Body .= 'Name: ' . $_POST['Name'] . "\r\n";
	$Body .= 'Straße: ' . $_POST['Strasse'] . "\r\n";
	$Body .= 'PLZ, Ort: ' . $_POST['PLZ'] . ' ' . $_POST['Ort'] . "\r\n";
	$Body .= 'E-Mail: ' . $_POST['Mail'] . "\r\n";
	$Body .= 'Kommentar: ' ."\r\n\r\n" . $_POST['Kommentar'] . "\r\n\r\n";
	$Body .= 'Die Bedingungen wurden zur Kenntnis genommen.';
 
	mail($MailTo, $Subject, $Body, $AdditionalHeader);
	echo "<p>Vielen Dank. Wir haben Ihre Anmeldung erhalten und werden uns schnellstens mit Ihnen in Verbindung setzen.</p>";
}
else
	echo('<meta http-equiv="refresh" content="1, f_formular_ek.html">');
?>
[+][-]02.08.2008 at 06:37AM PST, ID: 20850438

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.08.2008 at 06:42AM PST, ID: 20850501

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.08.2008 at 06:48AM PST, ID: 20850593

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.08.2008 at 06:49AM PST, ID: 20850604

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Safari Web Browser, PHP Scripting Language, WebApplications
Tags: Apple, Safari, PHP, Safari (Mac and PC versions), form data
Sign Up Now!
Solution Provided By: ddrudik
Participating Experts: 2
Solution Grade: B
 
 
[+][-]02.08.2008 at 06:56AM PST, ID: 20850691

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080924-EE-VQP-39 / EE_QW_2_20070628