uND
15.02.2006, 14:56:58
hi,
und zwar hab ich folgendes Problem:
Ich will aus einem .php Formular mit textfeldern raus ein javascript popup öffnen und die Werte des Formulares darin anzeigen lassen, bisher sieht mein quelltext so aus:
formular:
<html>
<head><title></title>
<script language="JavaScript">
function anews() {
mywin = window.open("cexec.php","vollmacht","menubar=no,statusbar=no,toolbar=no,resize=no,width=500,height=700");
}
</script>
</head>
<body>
<br>
<strong>Vollmacht zur Zulassung</strong><br>
<form method="POST" action="javascript:anews();">
<table width="347" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td height="20"><div align="right">
<p>Vorname:</p>
</div></td>
<td><input name="vorname" type="text" class="editbox"></td>
</tr>
<tr>
<td height="20"><div align="right">Name:</div></td>
<td><input name="name" type="text" class="editbox"></td>
</tr>
<tr>
<td width="47%" height="20"><div align="right">Strasse:</div></td>
<td width="53%"><input name="street" type="text" class="editbox"></td>
</tr>
<tr>
<td height="20"><div align="right">Plz:</div></td>
<td><input name="plz" type="text" class="editbox"></td>
</tr>
<tr>
<td height="20"><div align="right">Ort:</div></td>
<td><input name="ort" type="text" class="editbox"></td>
</tr>
<tr>
<td height="20" valign="top"><div align="right"></div></td>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="50%" height="26"><input name="submit" type="submit" value="drucken"></td>
<td width="50%"><input name="reset" type="reset" value="löschen" ></td>
</tr>
</table></td>
</tr>
</table>
</form>
</body>
</html>
aufgerufene php datei:
<?
echo "<html>";
echo "<head>";
echo "<title></title>";
echo "<style type=\"text/css\">";
echo "<!-- ";
echo ".Stil1 {";
echo " font-family: Arial, Helvetica, sans-serif;";
echo " font-weight: bold;";
echo " font-size: 36px;";
echo "}";
echo ".Stil3 {";
echo " font-size: 24px;";
echo " font-family: Arial, Helvetica, sans-serif;";
echo "}";
echo "-->";
echo "</style>";
echo "<body>";
echo "<p><span class=\"Stil1\">Vollmacht zur Zulassung</span><br>";
echo "</p>";
echo "<p class=\"Stil3\">Hiermit erteile die Vollmacht das der Zulassungsdienst Müllheim mein<br>";
echo "Fahrzeug zulassen darf!</p>";
echo "<p class=\"Stil3\"> </p>";
echo "<p class=\"Stil3\">Name: ".$_POST["name"].", ".$_POST["vorname"]."<br>";
echo "Adresse: ".$_POST["street"].", ".$_POST["plz"]." ".$_POST["ort"]."</p>";
echo "<p class=\"Stil3\"><br>";
echo "Unterschrift: </p>";
echo "</body>";
echo "</html>";
?>
vielen dank schonmal für eure Hilfe!
greez uND
und zwar hab ich folgendes Problem:
Ich will aus einem .php Formular mit textfeldern raus ein javascript popup öffnen und die Werte des Formulares darin anzeigen lassen, bisher sieht mein quelltext so aus:
formular:
<html>
<head><title></title>
<script language="JavaScript">
function anews() {
mywin = window.open("cexec.php","vollmacht","menubar=no,statusbar=no,toolbar=no,resize=no,width=500,height=700");
}
</script>
</head>
<body>
<br>
<strong>Vollmacht zur Zulassung</strong><br>
<form method="POST" action="javascript:anews();">
<table width="347" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td height="20"><div align="right">
<p>Vorname:</p>
</div></td>
<td><input name="vorname" type="text" class="editbox"></td>
</tr>
<tr>
<td height="20"><div align="right">Name:</div></td>
<td><input name="name" type="text" class="editbox"></td>
</tr>
<tr>
<td width="47%" height="20"><div align="right">Strasse:</div></td>
<td width="53%"><input name="street" type="text" class="editbox"></td>
</tr>
<tr>
<td height="20"><div align="right">Plz:</div></td>
<td><input name="plz" type="text" class="editbox"></td>
</tr>
<tr>
<td height="20"><div align="right">Ort:</div></td>
<td><input name="ort" type="text" class="editbox"></td>
</tr>
<tr>
<td height="20" valign="top"><div align="right"></div></td>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="50%" height="26"><input name="submit" type="submit" value="drucken"></td>
<td width="50%"><input name="reset" type="reset" value="löschen" ></td>
</tr>
</table></td>
</tr>
</table>
</form>
</body>
</html>
aufgerufene php datei:
<?
echo "<html>";
echo "<head>";
echo "<title></title>";
echo "<style type=\"text/css\">";
echo "<!-- ";
echo ".Stil1 {";
echo " font-family: Arial, Helvetica, sans-serif;";
echo " font-weight: bold;";
echo " font-size: 36px;";
echo "}";
echo ".Stil3 {";
echo " font-size: 24px;";
echo " font-family: Arial, Helvetica, sans-serif;";
echo "}";
echo "-->";
echo "</style>";
echo "<body>";
echo "<p><span class=\"Stil1\">Vollmacht zur Zulassung</span><br>";
echo "</p>";
echo "<p class=\"Stil3\">Hiermit erteile die Vollmacht das der Zulassungsdienst Müllheim mein<br>";
echo "Fahrzeug zulassen darf!</p>";
echo "<p class=\"Stil3\"> </p>";
echo "<p class=\"Stil3\">Name: ".$_POST["name"].", ".$_POST["vorname"]."<br>";
echo "Adresse: ".$_POST["street"].", ".$_POST["plz"]." ".$_POST["ort"]."</p>";
echo "<p class=\"Stil3\"><br>";
echo "Unterschrift: </p>";
echo "</body>";
echo "</html>";
?>
vielen dank schonmal für eure Hilfe!
greez uND