Hallo,
ich habe ein PHP Formmailscript auf meinen Server hochgeladen.
Wenn ich das Script direkt über den Browser aufrufe (/index.php)und eine Email versende funktioniert das bestens.
Wie aber binde ich das Formular Script in eine fertige Html Seite ein ?
Hier ist der Html-Quellcode wie ich mir das vom Design her vorstelle.
Wie bekomme ich das Html-Formular dazu, dass es auf das PHP-Script zugreift?
Viele Grüße
rovero
ich habe ein PHP Formmailscript auf meinen Server hochgeladen.
Wenn ich das Script direkt über den Browser aufrufe (/index.php)und eine Email versende funktioniert das bestens.
Wie aber binde ich das Formular Script in eine fertige Html Seite ein ?
Hier ist der Html-Quellcode wie ich mir das vom Design her vorstelle.
Wie bekomme ich das Html-Formular dazu, dass es auf das PHP-Script zugreift?
Code:
<html>
<head>
<title>WEBCOM TEMPLATE by HP-G</title>
<link rel="stylesheet" type="text/css" href="[URL="file://images/style.css"]images/style.css[/URL]">
</head>
<body leftmargin=0 topmargin=0 marginheight="0" marginwidth="0" bgcolor="#ffffff">
<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td width="50%" background="[URL="file://images/bg.gif"><img"]images/bg.gif"><img[/URL] src="[URL="file://images/px1.gif"]images/px1.gif[/URL]" width="1" height="1" alt="" border="0"></td>
<td valign="bottom" background="[URL="file://images/bg_left.gif"><img"]images/bg_left.gif"><img[/URL] src="[URL="file://images/bg_left.gif"]images/bg_left.gif[/URL]" alt="" width="17" height="16" border="0"></td>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="780" height="82" background="[URL="file://images/fon_top.jpg"]images/fon_top.jpg[/URL]">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="5" width="" background="" align="center">
<form action="" method="POST">
<tr>
<td align="right" width="500"> <p class="menu"> <img src="http://www.html.de/images/dot_g.gif" width="5" height="5" alt="" border="0" align="middle"> <a href="index.html">HOME</a>
</p></td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<table width="780" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="449"><img src="http://www.html.de/images/main01.jpg" width="449" height="149"></td>
<td width="332"><img src="sourcefiles_quelldateien/logo_area_blank.jpg" width="332" height="149"></td>
</tr>
<tr>
<td height="45" valign="top"><img src="http://www.html.de/images/main02.jpg" width="449" height="45"></td>
<td rowspan="3" valign="top"><img src="sourcefiles_quelldateien/slogan_area_blank.jpg" width="332" height="135"></td>
</tr>
<tr>
<td height="50" background="http://www.html.de/images/fon03.gif"><a href="about.html"><img src="http://www.html.de/images/but01.gif" width="104" height="50" border="0"></a><a href="services.html"><img src="http://www.html.de/images/but02.gif" width="104" height="50" border="0"></a><a href="contact.html"><img src="http://www.html.de/images/but03.gif" width="104" height="50" border="0"></a><a href="impressum.html"><img src="http://www.html.de/images/but04.gif" width="104" height="50" border="0"></a></td>
</tr>
<tr>
<td background="http://www.html.de/images/head_bg.jpg" width="449" class="titleb" height="40" valign="middle"> Kontakt</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="780" height="400">
<tr valign="top">
<td bgcolor="#E9E9E9">
<table border="0" cellspacing="0" cellpadding="0" width="501">
<tr>
<td align="right">
<table border="0" cellspacing="0" cellpadding="0" width="435">
<tr valign="top">
<td>
<p class="title">Kontakt</p>
<p class="titleb">
<table border="0" cellpadding="3" cellspacing="0" dwcopytype="CopyTableRow">
<tr>
<td>Vorname*:</td>
<td> </td>
<td><input type="Text" name="firstname" value="" size="40" /></td>
</tr>
<tr valign="bottom">
<td>Nachname*:</td>
<td> </td>
<td>
<input type="Text" name="lastname" value="" size="40" />
</td>
</tr>
<tr valign="bottom">
<td>Email Adresse*:</td>
<td> </td>
<td>
<input type="Text" name="email" value="" size="40" />
</td>
</tr>
<tr>
<td valign="bottom">Betreff*:</td>
<td> </td>
<td>
<input type="Text" name="subject" value="" size="40" />
</td>
</tr>
<tr valign="top">
<td>Ihre Nachricht*:</td>
<td> </td>
<td><textarea name="comment" cols="30" rows="10"></textarea></td>
</tr>
<tr valign="top">
<td> </td>
<td> </td>
<td>
<input type="submit" name="mode_preview" value="Vorschau" />
<input type="submit" name="send" value="Absenden" />
</td>
</tr>
</table> </p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td bgcolor="#0B6795"><img src="http://www.html.de/images/px1.gif" width="1" height="1" alt="" border="0"></td>
<td bgcolor="#0761A7">
<table border="0" cellspacing="0" cellpadding="0" width="278">
<tr bgcolor="#848484">
<td>
<p class="titlew"> </p>
</td>
</tr>
<tr>
<td bgcolor="#0B6795"><img src="http://www.html.de/images/px1.gif" width="1" height="1" alt="" border="0"></td>
</tr>
<tr valign="top">
<td height="132" background="http://www.html.de/images/fon02.gif" style="background-position: top; background-repeat: no-repeat;">
<p class="titlew"><br>
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div align="right"><img src="http://www.html.de/images/sh01.gif" width="278" height="7" alt="" border="0"></div>
<table border="0" cellpadding="0" cellspacing="0" width="780">
<tr>
<td><p>Copyright ©2009 BrainworkdSCompany.com</p></td>
<td>
<p class="menu_bot" align="center"> </p>
</td>
</tr>
</table>
</td>
<td valign="bottom" background="http://www.html.de/images/bg_right.gif"><img src="http://www.html.de/images/bg_right.gif" alt="" width="17" height="16" border="0"></td>
<td width="50%" background="http://www.html.de/images/bg.gif"><img src="http://www.html.de/images/px1.gif" width="1" height="1" alt="" border="0"></td>
</tr>
</table>
</body>
</html>
Viele Grüße
rovero
Zuletzt bearbeitet von einem Moderator: