Forum Sign UP Login Contact Us
HOME : Forum : PHP programming : Post New Topic
Please I need php code that will send drop down form to email
bayo23
03:31:12 09:20
<form action="" name="submit" method="post" target="_self">
<tr>
<td width="136" class="body_text">Room Type</td>
<td width="343"><select name="rmtype[]" class="TextForForm" id="rmtype">
<option value="Standard">Stardard - N6,000</option>
<option value="Royal-Single">Royal Single - N9,500</option>
<option value="Royal-Double">Royal Double - N11,000</option>
<option value="Business-Suite">Business Suite - N17,250</option>
</select></td>
</tr>
<tr>
<td class="body_text">Check In Date</td>
<td><table width="250" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><label for="iday"></label>
<select name="iday" class="FormGo" id="iday[]">
<option value="1" selected="selected">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select></td>
<td><select name="imonth" class="FormGo" id="imonth[]">
<option value="1" selected="selected">Jan</option>
<option value="2">Feb</option>
<option value="3">Mar</option>
<option value="4">Apr</option>
<option value="5">May</option>
<option value="6">Jun</option>
<option value="7">Jul</option>
<option value="8">Aug</option>
<option value="9">Sep</option>
<option value="10">Oct</option>
<option value="11">Nov</option>
<option value="12">Dec</option>
</select></td>
<td><select name="iyear" class="FormGo" id="iyear[]">
<option value="2012">2012</option>
<option value="2013">2013</option>
</select></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td class="body_text">Check Out Date</td>
<td><table width="100" border="0" cellspacing="2" cellpadding="2">
<tr>
<td><label for="label"></label>
<select name="oday" class="FormGo" id="oday[]">
<option value="1" selected="selected">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select></td>
<td><select name="omonth" class="FormGo" id="omonth[]">
<option value="1" selected="selected">Jan</option>
<option value="2">Feb</option>
<option value="3">Mar</option>
<option value="4">Apr</option>
<option value="5">May</option>
<option value="6">Jun</option>
<option value="7">Jul</option>
<option value="8">Aug</option>
<option value="9">Sep</option>
<option value="10">Oct</option>
<option value="11">Nov</option>
<option value="12">Dec</option>
</select></td>
<td><select name="oyear" class="FormGo" id="oyear[]">
<option value="2012">2012</option>
<option value="2013">2013</option>
</select></td>
</tr>
</table></td>
</tr>
<tr>
<td class="body_text">No. of Room </td>
<td><table width="250" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><select name="noroom" class="FormGo" id="noroom[]">
<option value="1" selected="selected">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" class="tiny_text">1</td>
</tr>
<tr>
<td colspan="2" bgcolor="#E8CFCD" class="body_text"><strong>Enter your contact details</strong></td>
</tr>
<tr>
<td class="body_text">Name*</td>
<td><input name="rname" class="TextForForm" size="45" id="rname"></td>
</tr>
<tr>
<td class="body_text">Email Address*</td>
<td><input name="remail" class="TextForForm" size="45" id="remail"></td>
</tr>
<tr>
<td class="body_text">Telephone*</td>
<td><input name="rphone" class="TextForForm" size="45" id="rphone"></td>
</tr>
<tr>
<td class="body_text">Comment</td>
<td><textarea name="rmessage" cols="47" wrap="virtual" class="FormScroll" id="rmessage"></textarea></td>
</tr>

<tr>
<td>&nbsp;</td>
<td align="left"><input name="submit" type="submit" class="btn" id="submit" value="Submit" src="images/submit.gif"></td>
</tr>
</table></td>
</tr>
</form>
subhendu
04:01:12 13:20
You must know how to handle form and collect the user data.
ohsnyder
04:10:12 22:50
Try following this code as it relates to the processing script below it.

Pretty sure your form 'action' cannot be ""

************************************************

"ENTRY FORM"

<?php include("/home/mdwvo/public_html/aabees.org/password_protect.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Record Selection Form for Clubs Maintainance</title>

</head>

<body>



<!-- form to get key detail of record in database -->

<form name="form1" method="POST" action="club_search.php">

<table align=center>

<th align=center><h2>Clubs Maintenance Form</h2></th>

<tr><td align=center>Enter Club Index Number</td></tr>

<tr><td align=center><input type="text" size="2" name="search"></td></tr>

<tr><td> </td></tr>

<tr><td align=center><input type="submit" value="Submit Record ID to Update"></td></tr>

</table>

</form>

<p> </p>

<form align="center" name="input" action="http://aabees.org/club_insert1.php" />
<input type="submit" value="Add New Record" />
</form>

<form align=center name=input action='http://aabees.org/' />
<input type='submit' value='Log Out' />
</form>

</body>

</html>

*********************************************************

"PROCESSING SCRIPT"

<?php

include("menu.php");

$con = mysql_connect("localhost","*******","*******");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("mdwvo_aaba", $con);


$search=$_POST['search'];

$data = 'SELECT * FROM `clubs` WHERE `id` = "'.$search.'"';
$query = mysql_query($data) or die("Couldn't execute query. ". mysql_error());
$data2 = mysql_fetch_array($query);


?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
</head>

<body>

<!-- form to display record from database -->
<form name="form" method="POST" action="club_results.php">

<table align=center>
<th align=center><h2>Record to be Updated</h2></th>
<tr align=center><td><h4>ID: <?php echo $data2[id]?></h4></td></tr>

<input type="hidden" id="id" name="id" value="<?php echo $data2[id]?>"/>

<tr align=center><td><h3>State:</td<td><input type="text" name="state" value="<?php echo $data2[state]?>"/></h3></td></tr>
<tr align=center><td><h3>Club Name:</td<td><input type="text" name="club" size="100" value="<?php echo $data2[club]?>"/></h3></td></tr>
<tr align=center><td><h3>Web Site:</td<td><input type="text" name="url" size="100" value="<?php echo $data2[url]?>"/></h3></td></tr>
<tr align=center><td><h3>Level: </td<td><input type="text" name="level" size="1" value="<?php echo $data2[level]?>"/></h3></td></tr>
<tr align=center><td><h3>Delete ?: </td<td><input type="text" name="deleted" size="3" value="<?php echo $data2[deleted]?>"/>Format = No or Yes(Case Sensitive</h3></td></tr>


<tr align=center><td> <input type="submit" value="Update Record"></td></tr>

</table>
</form>

<form align=center name=input action='http://aabees.org' />
<input type='submit' value='Log Out' />
</form>

</body>
</html>
bayo23
04:24:12 02:27
Thanks, I will try this.....
Please Login to post your reply or start a new topic
Privacy Policy | Disclaimer
©2000 - 2014 plus2net.com All rights reserved worldwide