SilentWarrior
Erfahrenes Mitglied
Guckst du hier: [phpf]isset[/phpf].
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
$error['name'] = "<font color=#990000>Your Input is incorrect!</font>";
$error['firstname'] = "<font color=#990000>Your Input is incorrect!</font>";
$error['street'] = "<font color=#990000>Your Input is incorrect!</font>";
$error['zip'] = "<font color=#990000>Your Input is incorrect!</font>";
$error['city'] = "<font color=#990000>Your Input is incorrect!</font>";
$error['country'] = "<font color=#990000>Your Input is incorrect!</font>";
$error['email'] = "<font color=#990000>Your Input is incorrect!</font>";
$fehler="
<!--All Programming, texting and graphic-work-->
<!--done by schmid-online and by Reto Bürkli-->
<!--Copyright (c) by schmid-online.-->
<!--Reproduction in whole or in part-->
<!--in any form or medium without-->
<!--written permission is prohibited.-->
<!--Working agent - Jonas Schmid-->
<!--Contact - infos@schmid-online.ch-->
<!--schmid-online *webdesigning*designing* - www.schmid-online.ch-->
<html>
<head>
<meta http-equiv='content-type' content='text/html;charset=iso-8859-1'>
<SCRIPT LANGUAGE='JavaScript' src='http://www.optimistic.ch/_php/e/js/navi.js' type='text/javascript'></SCRIPT>
<link rel='stylesheet' href='http://www.optimistic.ch/_php/e/css/style.css' type='text/css'>
<title>optimistic/* Mañana</title>
</head>
<body>
<div id='music_title'>
<b>1 'Fast Days' E.P.</b> and the brand new Mañana<br>
single <b>'MISS EVENING' US - Dollar 18.00</b><br>
(packaging and postage included)</div>
<div id='music_text_left'>
<b>STEP 1 - ORDER</b><br>
Please fill in this form to order your very own copy of<br>
Manana´s ´Fast Days´ E.P. and the band´s new single<br>
´Miss Evening´, featured on FIFA Soccer 2005<br>
<br>
<b>STEP 2 - PAY</b> (that´s the way it is...)<br>
Inside is a small independent label, therefore we cannot<br>
accept credit cards or checks - sorry about that.<br>
<br>
But no worries - here´s the easy way to pay (and the<br>
quickest one to get your copy of the ´Fast Days´ EP):<br>
<br>
Please send 18.00 USD (cash, no coins) to the following<br>
post address, including your personal data (name,<br>
address, country and e-mail) or a copy of the ordering<br>
form above (completed):<br>
<br>
inside AGENCY<br>
Postfach 109<br>
CH-4415 Lausen<br>
-Switzerland-<br>
<br>
We will send you the Mañana EP and single very soon.<br>
Thanks a lot for supporting the band, and we hope to see<br>
you soon at a local venue!<br>
<br>
Kind Regards, Mañana and the inside agency team<br>
<br>
For further information about the band, as well as their<br>
upcoming concerts and records, please visit<br>
www.optimistic.ch</div>
<div id='music_text_right'>I would like to order the following Manana recordings:<br>
<br>
<b>1x ´Fast Days E.P.´ (E.P., 19/12/2003)<br>
1x ´Miss Evening´ (single, 01/11/2004)<br>
</b><br>
This will cost me a total of US-Dollar 18.00<br>
(packaging and postage included).<br><br><br>
<!-- Hier kommt das Formular -->
<form name='order' ACTION='".$PHP_SELF."' method='post'>
<div align='center'>
<table border='0' cellpadding='0' cellspacing='6' width='250'>
<tr>
<td colspan='2'>*required information (**only for the U.S.A)</td>
</tr>";
if ($name =="")
echo "<tr><td></td><td>".$error['name']."</td></tr>";
echo"
<tr>
<td>name*:</td>
<td><input type='text' name='name' size='25' VALUE='".$name."'>
</td>
</tr>";
if ($firstname =="")
echo "<tr><td></td><td>".$error['firstname']."</td></tr>";
echo"
<tr>
<td>first name*:</td>
<td><input type='text' name='firstname' size='25' VALUE='".$firstname."'></td>
</tr>";
if ($street =="")
echo "<tr><td></td><td>".$error['street']."</td></tr>";
echo"
<tr>
<td>street*:</td>
<td><input type='text' name='street' size='25' VALUE='".$street."'></td>
</tr>";
if ($zip =="")
echo "<tr><td></td><td>".$error['zip']."</td></tr>";
echo"
<tr>
<td>zip code*:</td>
<td><input type='text' name='zip' size='25' VALUE='".$zip."'></td>
</tr>";
if ($city =="")
echo "<tr><td></td><td>".$error['city']."</td></tr>";
echo"
<tr>
<td>city*:</td>
<td><input type='text' name='city' size='25' VALUE='".$city."'></td>
</tr>
<tr>
<td>(state**):</td>
<td><input type='text' name='state' size='25' VALUE='".$state."'></td>
</tr>";
if ($country =="")
echo "<tr><td></td><td>".$error['country']."</td></tr>";
echo"
<tr>
<td>country*:</td>
<td><input type='text' name='country' size='25' VALUE='".$country."'></td>
</tr>";
if ($email =="")
echo "<tr><td></td><td>".$error['email']."</td></tr>";
echo"
<tr>
<td>e-mail address*</td>
<td><input type='text' name='email' size='25' VALUE='".$email."'></td>
</tr>
<tr>
<td>age</td>
<td><input type='text' name='age' size='25' VALUE='".$age."'></td>
</tr>
<tr>
<td>favourite bands:</td>
<td><input type='text' name='bands' size='25' VALUE='".$bands."'></td>
</tr>
<tr>
<td> </td>
<td></td>
</tr>
<tr>
<td colspan='2' align='right'>
Print this form (twice) and click here <input type='submit' name='submit' value='send'>
</td>
</tr>
<tr>
<td> </td>
<td align='right'></td>
</tr>
<tr>
<td> </td>
<td align='right'><a href='javascript:window.close()'>fenster schliessen</a></td>
</tr>
</table>
</div>
</form>
</div>
</body>
</html>";
if ($name == "" || $firstname =="" || $street =="" || $zip =="" || $city =="" || $country =="" || $email ==""){
echo "$fehler";
}
else
{
mail("$webmaster","$betreffwebmaster","$koerperwebmaster\n","FROM: $absender\n");
}
?>
Robert Steichele hat gesagt.:Das Formular muß ja so oder so selbst aufrufen, damit du die Variablen überprüfen kannst. Genau an der Stelle, wo der rote Text erscheinen soll machst du z.B. eine If-Abfrage ein, die im Fall eine falschen Eingabe einen Text (deinen Fehlertext) ausgibt. Wenn die Eingabe korrekt war, passiert nichts.
Du solltest bei der If-Abfrage noch abfragen, ob die Variable gesetzt ist, sonst erscheint die Fehlermeldung auch beim ersten Laden des Formulars.
echo("<form name=\"AuthForm\" style=\"display:inline;\" method=\"post\" action=\"$PHP_SELF?auth=1&key=$eb_1&lang=$lang\">");
echo("Neue Bezeichnung: <input type=\"text\" value=\"$name\" name=\"bezeichnung\" maxlength=\"100\">
<input type=\"hidden\" name=\"update_eb_1\" value=\"1\">");
echo("<br \>
<img src=\"pfeil.gif\"> <a href=\"javascript: document.AuthForm.submit()\">Änderungen speichern</a> <br \>
<img src=\"pfeil.gif\"> <a href=\"$PHP_SELF?auth=1&lang=$lang\">Abbruch</a>");