Ludo Lambrechts Posted November 14, 2007 Share Posted November 14, 2007 Hey everyone, I have been working on putting together a website for a virtual airline and one of the features I tried to get in my website is a register page in which users enter info into fields and then hit submit to e-mail the info to my e-mail address. I have a PHP document set up here at http://canflyairways.com/register_2.php/ I had a friend put together a PHP script that should have been able to send all of the info (first name, last name, email address, date of birth...etc) off to my e-mail address (ludo62@ontariointernet.com) . Now when a user clicks submit it goes to an "e-mail successfully sent" message. Whenever I receive the e-mail, none of the fields are included in the e-mail. Instead this is what I get: Title of E-mail: Submit:Submit That is all the e-mail message says. Can someone check the source code of the page I have up at the link I provided up there and let me know what the issue is? Thanks a lot! Ludo Lambrechts Quote Link to comment Share on other sites More sharing options...
kellz Posted November 14, 2007 Share Posted November 14, 2007 Maybe he forgot to pass the variables to the mail function.. And no one can check the source code by looking at your website because it's server side code so you'll have to post your code here^^ Quote Link to comment Share on other sites More sharing options...
Ludo Lambrechts Posted November 14, 2007 Author Share Posted November 14, 2007 Sorry, I never realised that my code wouldn't show up on the source code. Here it is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Register</title> </head> <body> <table width="1001" height="829" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <th height="122" colspan="13" scope="col"><img src="images/topmenu.jpg" width="1000" height="115" border="0" usemap="#Map" /></th> </tr> <tr> <th height="14" colspan="13" scope="row"> </th> </tr> <tr> <th width="4" height="20" scope="row"> </th> <th scope="row"><img src="images/imagebar_cornertopleft.jpg" width="20" height="20" /></th> <th colspan="9" bgcolor="#7da7cf" scope="row"> </th> <th scope="row"><img src="images/imagebar_cornertopright.jpg" width="20" height="20" /></th> <th width="4" scope="row"> </th> </tr> <tr> <th height="75" scope="row"> </th> <th width="20" height="75" bgcolor="#7da7cf" scope="row"> </th> <th width="20" bgcolor="#7da7cf" scope="row"> </th> <th width="215" bgcolor="#7da7cf" scope="row"><img src="images/small_1.jpg" width="215" height="94" /></th> <th width="17" bgcolor="#7da7cf" scope="row"> </th> <th width="215" bgcolor="#7da7cf" scope="row"><img src="images/small_2.jpg" width="215" height="94" /></th> <th width="18" bgcolor="#7da7cf" scope="row"> </th> <th width="215" bgcolor="#7da7cf" scope="row"><img src="images/small_3.jpg" width="215" height="94" /></th> <th width="17" bgcolor="#7da7cf" scope="row"> </th> <th width="215" bgcolor="#7da7cf" scope="row"><img src="images/small_4.jpg" width="215" height="94" /></th> <th width="21" bgcolor="#7da7cf" scope="row"> </th> <th width="20" bgcolor="#7da7cf" scope="row"> </th> <th height="75" scope="row"> </th> </tr> <tr> <th height="20" scope="row"> </th> <th height="20" scope="row"><img src="images/imagebar_cornerbottleft.jpg" width="20" height="20" /></th> <th height="20" colspan="9" bgcolor="#7da7cf" scope="row"> </th> <th height="20" scope="row"><img src="images/imagebar_cornerbottright.jpg" width="20" height="20" /></th> <th height="20" scope="row"> </th> </tr> <tr> <th height="156" rowspan="11" scope="row"> </th> <th height="19" scope="row"> </th> <th height="19" scope="row"> </th> <th height="19" colspan="3" scope="row"> </th> <th height="19" scope="row"> </th> <th height="19" colspan="3" scope="row"> </th> <th height="19" scope="row"> </th> <th height="19" scope="row"> </th> <th height="156" rowspan="11" scope="row"> </th> </tr> <tr> <th rowspan="9" scope="row"> </th> <th rowspan="9" scope="row"> </th> <th rowspan="9" align="left" valign="top" scope="row"><p>*Not a Mandatory field, if you are uncomfortable entering your last name please just enter "Unspecified" </p> <p>**If you are uncomfortable conveying your exact location on the internet leave blank OR enter the closest urban center</p> <p>***There is no past experience required to join CanFly Virtual Airways, however we have added this field to the registration form in order to attain an idea of the pilot's background.</p></th> <th rowspan="9" align="left" valign="top" scope="row"> </th> <th height="31" align="left" valign="top" scope="row"><div align="right"> <p> <? if($_POST["submit"]) { $to = 'ludo62@ontariointernet.com'; $subject = 'Canfly Pilot Registration'; $message = 'Title of e-mail:'."\n"; foreach($_POST as $name => $val) { $message .= $name.': '.$val."\n"; } mail($to,$subject,$message) or die("Unable to send email"); echo 'E-mail Sent Successfully.'; } else { ?> First Name </p> </div></th> <th align="left" valign="top" scope="row"> </th> <th colspan="3" align="left" valign="top" scope="row"><form action="<?=$_SERVER["PHP_SELF"]?>" method="POST"> <input type="text" name="textfield" /> </th> <th rowspan="9" scope="row"> </th> <th rowspan="9" scope="row"> </th> </tr> <tr> <th height="34" align="left" valign="top" scope="row"><div align="right"> <p>Last Name* </p> </div></th> <th align="left" valign="top" scope="row"> </th> <th colspan="3" align="left" valign="top" scope="row"><form action="<?=$_SERVER["PHP_SELF"]?>" method="POST"> <input type="text" name="textfield2" /> </th> </tr> <tr> <th height="32" align="left" valign="top" scope="row"><div align="right">E-mail Address </div></th> <th align="left" valign="top" scope="row"> </th> <th colspan="3" align="left" valign="top" scope="row"><form action="<?=$_SERVER["PHP_SELF"]?>" method="POST"> <input type="text" name="textfield22" /> </th> </tr> <tr> <th height="32" align="left" valign="top" scope="row"><div align="right">Date of Birth </div></th> <th align="left" valign="top" scope="row"> </th> <th colspan="3" align="left" valign="top" scope="row"><form action="<?=$_SERVER["PHP_SELF"]?>" method="POST"> Day <select name="select"> <option value="1">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> Month <select name="select2"> <option value="January">January</option> <option value="February">February</option> <option value="March">March</option> <option value="April">April</option> <option value="May">May</option> <option value="June">June</option> <option value="July">July</option> <option value="August">August</option> <option value="September">September</option> <option value="October">October</option> <option value="November">November</option> <option value="December">December</option> </select> Year <select name="select3"> <option value="2007">2007</option> <option value="2006">2006</option> <option value="2005">2005</option> <option value="2004">2004</option> <option value="2003">2003</option> <option value="2002">2002</option> <option value="2001">2001</option> <option value="2000">2000</option> <option value="1999">1999</option> <option value="1998">1998</option> <option value="1997">1997</option> <option value="1996">1996</option> <option value="1995">1995</option> <option value="1994">1994</option> <option value="1993">1993</option> <option value="1992">1992</option> <option value="1991">1991</option> <option value="1990">1990</option> <option value="1989">1989</option> <option value="1988">1988</option> <option value="1987">1987</option> <option value="1986">1986</option> <option value="1985">1985</option> <option value="1984">1984</option> <option value="1983">1983</option> <option value="1982">1982</option> <option value="1981">1981</option> <option value="1980">1980</option> <option value="1979">1979</option> <option value="1978">1978</option> <option value="1977">1977</option> <option value="1976">1976</option> <option value="1975">1975</option> <option value="1974">1974</option> <option value="1973">1973</option> <option value="1972">1972</option> <option value="1971">1971</option> <option value="1970">1970</option> <option value="1969">1969</option> <option value="1968">1968</option> <option value="1967">1967</option> <option value="1966">1966</option> <option value="1965">1965</option> <option value="1964">1964</option> <option value="1963">1963</option> <option value="1962">1962</option> <option value="1961">1961</option> <option value="1960">1960</option> <option value="1959">1959</option> <option value="1958">1958</option> <option value="1957">1957</option> <option value="1956">1956</option> <option value="1955">1955</option> <option value="1954">1954</option> <option value="1953">1953</option> <option value="1952">1952</option> <option value="1951">1951</option> <option value="1950">1950</option> <option value="1949">1949</option> <option value="1948">1948</option> <option value="1947">1947</option> <option value="1946">1946</option> <option value="1945">1945</option> <option value="1944">1944</option> <option value="1943">1943</option> <option value="1942">1942</option> <option value="1941">1941</option> <option value="1940">1940</option> <option value="1939">1939</option> <option value="1938">1938</option> <option value="1937">1937</option> <option value="1936">1936</option> <option value="1935">1935</option> <option value="1934">1934</option> <option value="1932">1932</option> <option value="1933">1933</option> <option value="1931">1931</option> <option value="1930">1930</option> <option value="1929">1929</option> <option value="1928">1928</option> <option value="1927">1927</option> <option value="1926">1926</option> <option value="1925">1925</option> <option value="1924">1924</option> <option value="1923">1923</option> <option value="1922">1922</option> <option value="1921">1921</option> <option value="1920">1920</option> <option value="1919">1919</option> <option value="1918">1918</option> <option value="1917">1917</option> <option value="1916">1916</option> <option value="1915">1915</option> <option value="1914">1914</option> <option value="1913">1913</option> <option value="1912">1912</option> <option value="1911">1911</option> <option value="1910">1910</option> <option value="1909">1909</option> <option value="1908">1908</option> <option value="1907">1907</option> <option value="1906">1906</option> <option value="1905">1905</option> <option value="1904">1904</option> <option value="1903">1903</option> <option value="1902">1902</option> <option value="1901">1901</option> <option value="1900">1900</option> </select> </th> </tr> <tr> <th height="34" align="left" valign="top" scope="row"><div align="right">Current Location** </div></th> <th align="left" valign="top" scope="row"> </th> <th colspan="3" align="left" valign="top" scope="row"><form action="<?=$_SERVER["PHP_SELF"]?>" method="POST"> <input type="text" name="textfield24" /> </th> </tr> <tr> <th height="32" align="left" valign="top" scope="row"><div align="right">Flight Simulator Used </div></th> <th align="left" valign="top" scope="row"> </th> <th colspan="3" align="left" valign="top" scope="row"><form action="<?=$_SERVER["PHP_SELF"]?>" method="POST"> <input type="text" name="textfield25" /> </th> </tr> <tr> <th height="22" align="left" valign="top" scope="row"><div align="right">FS Experience***</div> </th> <th align="left" valign="top" scope="row"> </th> <th colspan="3" align="left" valign="top" scope="row"><form action="<?=$_SERVER["PHP_SELF"]?>" method="POST"> <input type="text" name="textfield26" /> </form></th> </tr> <tr> <th height="8" align="left" valign="top" scope="row"> </th> <th align="left" valign="top" scope="row"> </th> <th colspan="3" align="left" valign="top" scope="row"> </th> </tr> <tr> <th height="16" align="left" valign="top" scope="row"> </th> <th align="left" valign="top" scope="row"> </th> <th colspan="3" align="left" valign="top" scope="row"><<form action="<?=$_SERVER["PHP_SELF"]?>" method="POST"> <input type="submit" name="submit" value="Submit"/> <? } ?> </th> </tr> <tr> <th height="191" align="left" valign="top" scope="row"> </th> </tr> <tr> <th height="19" colspan="11" bgcolor="#7DA7CF" scope="row">CanFly Virtual Airways </th> </tr> </table> <map name="Map" id="Map"><area shape="rect" coords="135,97,244,115" href="home.html" /> <area shape="rect" coords="259,97,368,114" href="operations.html" /> <area shape="rect" coords="382,96,492,113" href="pilots.html" /> <area shape="rect" coords="507,96,616,112" href="register.html" /> <area shape="rect" coords="630,97,740,113" href="http://s8.invisionfree.com/Canadian_Pilots" /> <area shape="rect" coords="755,97,864,113" href="links.html" /> </map></body> </html> Quote Link to comment Share on other sites More sharing options...
kellz Posted November 14, 2007 Share Posted November 14, 2007 I guess it's this: foreach($_POST as $name => $val) the $_POST should be $_POST['whatever'] but not the "whatever" Quote Link to comment Share on other sites More sharing options...
Daukan Posted November 14, 2007 Share Posted November 14, 2007 I think its your html You start a new form for each input and even the submit. Put everything inside one form tag. The submit will only submit the form its contained in. Quote Link to comment Share on other sites More sharing options...
teng84 Posted November 14, 2007 Share Posted November 14, 2007 you have so many form action LOL that the problem for sure Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted November 14, 2007 Share Posted November 14, 2007 No, that code looks fine. Here's how I do this -- it's not pretty, but it gets the job done: <?php if(isset($_POST["submit"])) { $to = 'ludo62@ontariointernet.com'; $subject = 'Canfly Pilot Registration'; $message = 'Title of e-mail:'."\n"; $message .= print_r($_POST,true) . "\n"; mail($to,$subject,$message) or die("Unable to send email"); echo 'E-mail Sent Successfully.'; }?> Quote Link to comment Share on other sites More sharing options...
Ludo Lambrechts Posted November 14, 2007 Author Share Posted November 14, 2007 I guess it's this: foreach($_POST as $name => $val) the $_POST should be $_POST['whatever'] but not the "whatever" What should I replace the whatever with? And where would this be changed, in the script or in ever form tag? I have tried to add your code Ken, I'm waiting to see the result! Thanks, Ludo Lambrechts Quote Link to comment Share on other sites More sharing options...
Ludo Lambrechts Posted November 14, 2007 Author Share Posted November 14, 2007 Any help please Ludo Lambrechts Quote Link to comment Share on other sites More sharing options...
teng84 Posted November 14, 2007 Share Posted November 14, 2007 http://www.w3schools.com/php/func_mail_mail.asp http://www.w3schools.com/php/php_post.asp there are so many problem in your work and i guess useless to write the code for you better to read and learn the basics take a look at those link surely that will help you cheers Quote Link to comment Share on other sites More sharing options...
Ludo Lambrechts Posted November 15, 2007 Author Share Posted November 15, 2007 I have rewritten my html/php code using the single form and the code which Ken posted here. It shows up fine, but I am now not even getting the "e-mail sent succesfully" message after pressing the submit button. It feels like I am very close to getting this right and hope someone can help me add the missing piece to the puzzle. The webpage is located here at http://canflyairways.com/register_6.php . Here's my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>CanFly Airways - Hub</title> <style type="text/css"> <!-- .style1 { font-family: Arial, Helvetica, sans-serif; font-weight: bold; } .style2 {font-family: Arial, Helvetica, sans-serif} --> </style> </head> <body> <table width="1001" height="332" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <th height="122" colspan="13" scope="col"><img src="images/topmenu.jpg" width="1000" height="115" border="0" usemap="#Map" /></th> </tr> <tr> <th height="14" colspan="13" scope="row"> </th> </tr> <tr> <th width="4" height="15" scope="row"> </th> <th scope="row"><img src="images/imagebar_cornertopleft.jpg" width="20" height="20" /></th> <th colspan="9" bgcolor="#7da7cf" scope="row"> </th> <th scope="row"><img src="images/imagebar_cornertopright.jpg" width="20" height="20" /></th> <th width="4" scope="row"> </th> </tr> <tr> <th height="75" scope="row"> </th> <th width="20" height="75" bgcolor="#7da7cf" scope="row"> </th> <th width="20" bgcolor="#7da7cf" scope="row"> </th> <th width="215" bgcolor="#7da7cf" scope="row"><img src="images/small_1.jpg" width="215" height="94" /></th> <th width="17" bgcolor="#7da7cf" scope="row"> </th> <th width="215" bgcolor="#7da7cf" scope="row"><img src="images/small_2.jpg" width="215" height="94" /></th> <th width="18" bgcolor="#7da7cf" scope="row"> </th> <th width="215" bgcolor="#7da7cf" scope="row"><img src="images/small_3.jpg" width="215" height="94" /></th> <th width="17" bgcolor="#7da7cf" scope="row"> </th> <th width="215" bgcolor="#7da7cf" scope="row"><img src="images/small_4.jpg" width="215" height="94" /></th> <th width="21" bgcolor="#7da7cf" scope="row"> </th> <th width="20" bgcolor="#7da7cf" scope="row"> </th> <th height="75" scope="row"> </th> </tr> <tr> <th height="19" scope="row"> </th> <th height="19" scope="row"><img src="images/imagebar_cornerbottleft.jpg" width="20" height="20" /></th> <th height="19" colspan="9" bgcolor="#7da7cf" scope="row"><div align="left"> <!-- #BeginDate format:fcAm1 -->Thursday, November 15, 2007<!-- #EndDate --></div></th> <th height="19" scope="row"><img src="images/imagebar_cornerbottright.jpg" width="20" height="20" /></th> <th height="19" scope="row"> </th> </tr> <tr> <th height="19" scope="row"> </th> <th colspan="12" scope="row"> </th> </tr> </table> <p> </p> <table width="1001" height="504" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <th width="20" height="191" scope="row"> </th> <th width="20" height="191" scope="row"> </th> <th height="191" colspan="7" align="center" valign="top" scope="row"> <?php if(isset($_POST["submit"])) { $to = 'ludo62@ontariointernet.com'; $subject = 'Canfly Pilot Registration'; $message = 'Title of e-mail:'."\n"; $message .= print_r($_POST,true) . "\n"; mail($to,$subject,$message) or die("Unable to send email"); echo 'E-mail Sent Successfully.'; }?> <form id="form1" name="form1" method="post" action="<?=$_SERVER["PHP_SELF"]?>"> <p align="left"> First Name <input type="text" name="textfield" /> </p> <p align="left">Last Name <input type="text" name="textfield2" /> </p> <p align="left">E-mail Addres <input type="text" name="textfield3" /> </p> <p align="left">Date of Birth - Month: <select name="select"> <option value="January">January</option> <option value="February">February</option> <option value="March">March</option> <option value="April">April</option> <option value="May">May</option> <option value="June">June</option> <option value="July">July</option> <option value="August">August</option> <option value="September">September</option> <option value="October">October</option> <option value="November">November</option> <option value="December">December</option> </select> Day <select name="select2"> <option value="1">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> Year <select name="select3"> <option value="2007">2007</option> <option value="2006">2006</option> <option value="2005">2005</option> <option value="2004">2004</option> <option value="2003">2003</option> <option value="2002">2002</option> <option value="2001">2001</option> <option value="2000">2000</option> <option value="1999">1999</option> <option value="1998">1998</option> <option value="1997">1997</option> <option value="1996">1996</option> <option value="1995">1995</option> <option value="1994">1994</option> <option value="1993">1993</option> <option value="1992">1992</option> <option value="1991">1991</option> <option value="1990">1990</option> <option value="1989">1989</option> <option value="1988">1988</option> <option value="1987">1987</option> <option value="1986">1986</option> <option value="1985">1985</option> <option value="1984">1984</option> <option value="1983">1983</option> <option value="1982">1982</option> <option value="1981">1981</option> <option value="1980">1980</option> <option value="1979">1979</option> <option value="1978">1978</option> <option value="1977">1977</option> <option value="1976">1976</option> <option value="1975">1975</option> <option value="1974">1974</option> <option value="1973">1973</option> <option value="1972">1972</option> <option value="1971">1971</option> <option value="1970">1970</option> <option value="1969">1969</option> <option value="1968">1968</option> <option value="1967">1967</option> <option value="1966">1966</option> <option value="1965">1965</option> <option value="1964">1964</option> <option value="1963">1963</option> <option value="1962">1962</option> <option value="1961">1961</option> <option value="1960">1960</option> <option value="1959">1959</option> <option value="1958">1958</option> <option value="1957">1957</option> <option value="1956">1956</option> <option value="1955">1955</option> <option value="1954">1954</option> <option value="1953">1953</option> <option value="1952">1952</option> <option value="1951">1951</option> <option value="1950">1950</option> <option value="1949">1949</option> <option value="1948">1948</option> <option value="1947">1947</option> <option value="1946">1946</option> <option value="1945">1945</option> <option value="1944">1944</option> <option value="1943">1943</option> <option value="1942">1942</option> <option value="1941">1941</option> <option value="1940">1940</option> <option value="1939">1939</option> <option value="1938">1938</option> <option value="1937">1937</option> <option value="1936">1936</option> <option value="1935">1935</option> <option value="1934">1934</option> <option value="1932">1932</option> <option value="1933">1933</option> <option value="1931">1931</option> <option value="1930">1930</option> <option value="1929">1929</option> <option value="1928">1928</option> <option value="1927">1927</option> <option value="1926">1926</option> <option value="1925">1925</option> <option value="1924">1924</option> <option value="1923">1923</option> <option value="1922">1922</option> <option value="1921">1921</option> <option value="1920">1920</option> <option value="1919">1919</option> <option value="1918">1918</option> <option value="1917">1917</option> <option value="1916">1916</option> <option value="1915">1915</option> <option value="1914">1914</option> <option value="1913">1913</option> <option value="1912">1912</option> <option value="1911">1911</option> <option value="1910">1910</option> <option value="1909">1909</option> <option value="1908">1908</option> <option value="1907">1907</option> <option value="1906">1906</option> <option value="1905">1905</option> <option value="1904">1904</option> <option value="1903">1903</option> <option value="1902">1902</option> <option value="1901">1901</option> <option value="1900">1900</option> </select> </p> <p align="left">Current Location <input type="text" name="textfield4" /> </p> <p align="left">Flight Simulator Used <input type="text" name="textfield5" /> </p> <p align="left">FS Experience <input type="text" name="textfield6" /> </p> <p align="left"> <input type="submit" name="Submit" value="Submit" /> </p> </form> ?> <p> </p> </th> <th width="20" height="191" scope="row"> </th> <th width="20" height="191" scope="row"> </th> </tr> <tr> <th height="19" colspan="11" bgcolor="#7DA7CF" scope="row">CanFly Virtual Airways - Copyright © 2007</th> </tr> </table> <p> <map name="Map" id="Map"> <area shape="rect" coords="135,97,244,115" href="home.html" /> <area shape="rect" coords="259,97,368,114" href="operations.html" /> <area shape="rect" coords="382,96,492,113" href="pilots.html" /> <area shape="rect" coords="507,96,616,112" href="register.php" /> <area shape="rect" coords="630,97,740,113" href="http://s8.invisionfree.com/Canadian_Pilots" /> <area shape="rect" coords="755,97,864,113" href="links.html" /> </map> </p> </body> </html> Quote Link to comment Share on other sites More sharing options...
revraz Posted November 15, 2007 Share Posted November 15, 2007 OT Reply Nice to see another VA going up Quote Link to comment Share on other sites More sharing options...
Ludo Lambrechts Posted November 15, 2007 Author Share Posted November 15, 2007 Any ideas guys? Thanks, Ludo Lambrechts Quote Link to comment Share on other sites More sharing options...
teng84 Posted November 15, 2007 Share Posted November 15, 2007 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>CanFly Airways - Hub</title> <style type="text/css"> <!-- .style1 { font-family: Arial, Helvetica, sans-serif; font-weight: bold; } .style2 {font-family: Arial, Helvetica, sans-serif} --> </style> </head> <body> <table width="1001" height="332" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <th height="122" colspan="13" scope="col"><img src="images/topmenu.jpg" width="1000" height="115" border="0" usemap="#Map" /></th> </tr> <tr> <th height="14" colspan="13" scope="row"> </th> </tr> <tr> <th width="4" height="15" scope="row"> </th> <th scope="row"><img src="images/imagebar_cornertopleft.jpg" width="20" height="20" /></th> <th colspan="9" bgcolor="#7da7cf" scope="row"> </th> <th scope="row"><img src="images/imagebar_cornertopright.jpg" width="20" height="20" /></th> <th width="4" scope="row"> </th> </tr> <tr> <th height="75" scope="row"> </th> <th width="20" height="75" bgcolor="#7da7cf" scope="row"> </th> <th width="20" bgcolor="#7da7cf" scope="row"> </th> <th width="215" bgcolor="#7da7cf" scope="row"><img src="images/small_1.jpg" width="215" height="94" /></th> <th width="17" bgcolor="#7da7cf" scope="row"> </th> <th width="215" bgcolor="#7da7cf" scope="row"><img src="images/small_2.jpg" width="215" height="94" /></th> <th width="18" bgcolor="#7da7cf" scope="row"> </th> <th width="215" bgcolor="#7da7cf" scope="row"><img src="images/small_3.jpg" width="215" height="94" /></th> <th width="17" bgcolor="#7da7cf" scope="row"> </th> <th width="215" bgcolor="#7da7cf" scope="row"><img src="images/small_4.jpg" width="215" height="94" /></th> <th width="21" bgcolor="#7da7cf" scope="row"> </th> <th width="20" bgcolor="#7da7cf" scope="row"> </th> <th height="75" scope="row"> </th> </tr> <tr> <th height="19" scope="row"> </th> <th height="19" scope="row"><img src="images/imagebar_cornerbottleft.jpg" width="20" height="20" /></th> <th height="19" colspan="9" bgcolor="#7da7cf" scope="row"><div align="left"> <!-- #BeginDate format:fcAm1 -->Thursday, November 15, 2007<!-- #EndDate --></div></th> <th height="19" scope="row"><img src="images/imagebar_cornerbottright.jpg" width="20" height="20" /></th> <th height="19" scope="row"> </th> </tr> <tr> <th height="19" scope="row"> </th> <th colspan="12" scope="row"> </th> </tr> </table> <p> </p> <table width="1001" height="504" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <th width="20" height="191" scope="row"> </th> <th width="20" height="191" scope="row"> </th> <th height="191" colspan="7" align="center" valign="top" scope="row"> <?php if(isset($_POST["submit"])) { $to = 'ludo62@ontariointernet.com'; $subject = 'Canfly Pilot Registration'; $message = 'Title of e-mail:'."\n"; $message .= print_r($_POST,true) . "\n"; mail($to,$subject,$message) or die("Unable to send email"); echo 'E-mail Sent Successfully.'; }?> <form id="form1" name="form1" method="post" action="<?=$_SERVER["PHP_SELF"]?>"> <p align="left"> First Name <input type="text" name="textfield" /> </p> <p align="left">Last Name <input type="text" name="textfield2" /> </p> <p align="left">E-mail Addres <input type="text" name="textfield3" /> </p> <p align="left">Date of Birth - Month: <select name="select"> <option value="January">January</option> <option value="February">February</option> <option value="March">March</option> <option value="April">April</option> <option value="May">May</option> <option value="June">June</option> <option value="July">July</option> <option value="August">August</option> <option value="September">September</option> <option value="October">October</option> <option value="November">November</option> <option value="December">December</option> </select> Day <select name="select2"> <?php for ($x=1;$x<=31;$x++){ echo '<option value="'.$x.'">'.$x.'</option>'; } ?> </select> Year <select name="select3"> <?php for ($x=2007;$x>=1900;$x--){ echo '<option value="'.$x.'">'.$x.'</option>'; } ?> </select> </p> <p align="left">Current Location <input type="text" name="textfield4" /> </p> <p align="left">Flight Simulator Used <input type="text" name="textfield5" /> </p> <p align="left">FS Experience <input type="text" name="textfield6" /> </p> <p align="left"> <input type="submit" name="submit" value="Submit" /> </p> </form> ?> <p> </p> </th> <th width="20" height="191" scope="row"> </th> <th width="20" height="191" scope="row"> </th> </tr> <tr> <th height="19" colspan="11" bgcolor="#7DA7CF" scope="row">CanFly Virtual Airways - Copyright © 2007</th> </tr> </table> <p> <map name="Map" id="Map"> <area shape="rect" coords="135,97,244,115" href="home.html" /> <area shape="rect" coords="259,97,368,114" href="operations.html" /> <area shape="rect" coords="382,96,492,113" href="pilots.html" /> <area shape="rect" coords="507,96,616,112" href="register.php" /> <area shape="rect" coords="630,97,740,113" href="http://s8.invisionfree.com/Canadian_Pilots" /> <area shape="rect" coords="755,97,864,113" href="links.html" /> </map> </p> </body> </html> note not tested but should work i edited your drop menu and change it with the loop hope that helps Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.