topical media & game development
basic-php-11-postcard-rev03.php / php
<html>
<head>
<title>Enter E-mail Data</title>
</head>
<body>
<form name="theform" method="post" action=<sendconf.php>>
<center>
<table width="640" border="0" cellpadding="4" cellspacing="0">
<tr>
<td colspan="4"><h2>Postcard Sender</h2></td>
</tr>
<tr bgcolor="#CCCCCC">
<td>To:</td>
<td><input type="text" name="toname" size="30"></td>
<td>e-mail:</td>
<td><input type="text" name="to" size="40"></td>
</tr>
<tr>
<td>From:</td>
<td><input type="text" name="fromname" size="30"></td>
<td>e-mail:</td>
<td><input type="text" name="from" size="40"></td>
</tr>
<tr bgcolor="#CCCCCC">
<td>Cc:</td>
<td><input type="text" name="cc" size="40"></td>
<td>Bcc:</td>
<td><input type="text" name="bcc" size="40"></td>
</tr>
<tr>
<td colspan="2">Choose a Postcard:
<select name="postcard[]" onchange="changepostcard(this.value)">
<?php
include("./includes/conn_comic.php");
images = mysql_query(conn) or die(mysql_error());
imagearray = mysql_fetch_array(iloop++;
imagearray['img_url'];
imagearray['img_desc'];
if (iurl\">image_url = iurl\">image_url)?>" width=320
height=240 border=0 id="postcard"></td>
<td valign="top"> </td>
<td align="right">
<textarea cols="30" rows="12" name="message"
>Enter your message here</textarea>
<input type="submit" value="Send">
<input type="reset" value="Reset the form">
</td>
</tr>
</table>
</center>
</form>
<script language="Javascript">
function changepostcard(imgurl) {
window.document.theform.postcard.src = imgurl;
}
</script>
</body>
</html>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.