LordAngmar
Ensign
- Registriert
- Sep. 2004
- Beiträge
- 136
Hallo Leute!
Hab mal wieder ne Frage zu meiner neuen Homepage.
Also ich habe eine Auswahl an verschiedenen Betriebssystemen- auswählbar über 5 Radiobuttons.
Wie kriege ich es nun hin, dass nur die Option (mit dem Formular) versandt wird, die ausgewählt wurde?
Noch ne frage: Was ist den der PHP-Befehl für obligatorische Felder?
hier mal die Auswahlliste:
und hier der zugehörige php-code:
Also ich habs mal anhand dieses Ausshnitts bei mir versucht und da kam immer nur ne leere mail an.
Thx für eure Hilfe!
Hab mal wieder ne Frage zu meiner neuen Homepage.
Also ich habe eine Auswahl an verschiedenen Betriebssystemen- auswählbar über 5 Radiobuttons.
Wie kriege ich es nun hin, dass nur die Option (mit dem Formular) versandt wird, die ausgewählt wurde?
Noch ne frage: Was ist den der PHP-Befehl für obligatorische Felder?
hier mal die Auswahlliste:
HTML:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form method="post" action="konfigurator.php">
<tr>
<td><div>
<p>
<input type="radio" name="group1" value="KEINS" checked><font color="#000000" face="Arial,helvetica" size="-1"> keins</font><br>
<input type="radio" name="group1" value="XP_HOME">
<font color="#000000" face="Arial,helvetica" size="-1">Microsoft: Windows XP Home OEM inkl. SP 2</font><br>
<input type="radio" name="group1" value="XP_PROF"><font color="#000000" face="Arial,helvetica" size="-1"> Microsoft: Windows XP Professional OEM inkl. SP 2</font><br>
<input type="radio" name="group1" value="XP_PROF_64">
<font color="#000000" face="Arial,helvetica" size="-1">Microsoft: Windows XP Professional 64 Bit OEM inkl. SP 2</font><br>
<input type="radio" name="group1" value="SUSE"><font color="#000000" face="Arial,helvetica" size="-1"> Novell: Suse Linux 10</font><br>
<input type="radio" name="group1" value="SUSE">
<font color="#000000" face="Arial,helvetica" size="-1">Novell: Suse Linux 10 64 Bit </font><br>
<input type="radio" name="group1" value="ANDERES_BETRIEBSSYSTEM"><font color="#000000" face="Arial,helvetica" size="-1"> anderes:</font>
<input type="text" name="fld_ANDERES_BETRIEBSSYSTEM">
<br>
</p>
</div>
</td>
<tr><td bgcolor="#e6e6e6"></td><td bgcolor="#e6e6e6"><font color="#000000" face="Arial,helvetica" size="-1"><input name="next" value="Zurücksetzen" type="reset"> <input name="next" value="Abschicken" type="submit"></font>
</pre></td>
</tr>
</form>
</body>
</html>
und hier der zugehörige php-code:
PHP:
<?PHP
mail("anselm@houswitschka.de","ASTRATONIS: Konfigurator",
$msg);
?>
Also ich habs mal anhand dieses Ausshnitts bei mir versucht und da kam immer nur ne leere mail an.
Thx für eure Hilfe!