How to insert this code into HTML file? -
i've been given code registration page:
<div id=mainsection> <? $row = getcustomerdetails(); ?> <h1>customer information</h1> <? if ($error) echo "<p class='error'>you have error in form - please fix issues below:</p>".$error; ?> <p>your contact details used assign legal owner of domains register, , necessary verify payment information. <b>if there errors in form not able complete purchase.</b></p> <form method='post'> <h3>contact information</h3> <table> <tbody> <tr><th>salutation</th><td> <? echo salutation(); ?> </td><td>required</td></tr> <tr <? echo req(firstname); ?>><th>first name(s)</th><td><? echo forminput('firstname'); ?></td><td>required</td> </tr> <tr <? echo req(lastname); ?>><th>surname</th><td><? echo forminput('lastname'); ?></td><td>required</td></tr> <tr><th>organisation type</th><td> <? echo orgtype(); ?> </td></tr> <tr <? if ($row[orgtype]=="company") echo req(orgname); ?>><th>organisation name</th><td><? echo forminput('orgname'); ?></td><td>required companies</td></tr> <script type='text/javascript'> toggle_org_name(); </script> <tr <? echo req(address1); ?>><th>first line of address</th><td><? echo forminput('address1'); ?></td><td>required</td></tr> <tr><th>second line of address</th><td><? echo forminput('address2'); ?></td></tr> <tr <? echo req(city); ?>><th>town</th><td><? echo forminput('city'); ?></td><td>required</td></tr> <tr <? echo req(county); ?>><th>county</th><td><? echo forminput('county'); ?></td><td>required</td></tr> <tr <? echo req(postcode); ?>><th>postcode</th><td><? echo forminput('postcode'); ?></td><td>required</td></tr> <tr <? echo req(country); ?>><th>country</th><td> <? echo formcountry(); ?> </td><td>required</td></tr> <tr <? echo reqphone(phonedefault); ?>><th>telephone number</th><td><? echo forminput('phonedefault'); ?><td>required - must in format +44.2081234567</td></td></tr> <tr <? echo reqphone(phonemobile); ?>><th>mobile number</th><td><? echo forminput('phonemobile'); ?></td><td>must in format +44.71234567</td></tr> <tr><th>fax number</th><td><? echo forminput('fax'); ?></td></tr> <tr <? if ($_post && !checkemail($row[email])) echo "style='background:red'"; ?>><th>email address</th><td><? echo forminput('email'); ?></td><td>required</td></tr> </tbody> </table> <h3>security information</h3> <table class='left-th'> <tbody> <tr <? echo pass(password1); ?>><th>password</th><td><? echo formpassword('password1'); ?></td><td>required</td></tr> <tr <? echo pass(password2); ?>><th>confirm password</th><td><? echo formpassword('password2'); ?></td><td>required</td></tr> <tr <? if ($_post && !checkdate($row[dobm],$row[dobd],$row[doby])) echo "style='background:red'"; ?>><th>date of birth</th><td> <? echo dobd(); ?> / <? echo dobm(); ?> / <? echo doby(); ?> </td><td>required</td></tr> <tr <? echo req(securityquestion); ?>><th>choose security question</th><td> <? echo securityquestion(); ?> </td></tr> <tr <? echo req(securityanswer); ?>><th>choose security answer</th><td><? echo forminput('securityanswer'); ?></td><td>required</td></tr> </tbody> </table> <h3>terms , conditions</h3> <p <? if ($_post && !$_post[terms]) echo "style='background:red'"; ?>><input type='checkbox' name='terms' value='1' /> please click here indicate accept <a href='tandc' target='_blank'>our terms , conditions</a>.</p> <p><input type='submit' value='<? if ($_get[noupsell]==1) echo "update details"; else echo "register now"?>' /></p> </form> </div> i'm trying use template have. template looks this, how can i, if @ possible, use above code within html file?
<!doctype html> <html lang="en"> <head> <title>web hosting | support</title> <meta charset="utf-8"> <link rel="stylesheet" href="css/reset.css" type="text/css" media="all"> <link rel="stylesheet" href="css/layout.css" type="text/css" media="all"> <link rel="stylesheet" href="css/style.css" type="text/css" media="all"> <script src="js/jquery-1.6.js" ></script> <script src="js/cufon-yui.js"></script> <script src="js/cufon-replace.js"></script> <script src="js/shanti_400.font.js"></script> <script src="js/didact_gothic_400.font.js"></script> <!--[if lt ie 9]> <script src="js/html5.js"></script> <style type="text/css">.button1{behavior:url("js/pie.htc");}</style> <![endif]--> </head> <body id="page5"> <div class="body1"> <div class="body2"> <div class="main"> <!-- header --> <header> <div class="wrapper"> <ul id="icons"> <li><a href="index.html"><img src="images/icon1.gif" alt=""></a></li> <li><a href="#"><img src="images/icon2.gif" alt=""></a></li> <li><a href="contacts.html"><img src="images/icon3.gif" alt=""></a></li> </ul> <span class="call">need help? please email or call <span>1-800-345-5894</span></span> </div> <div class="wrapper"> <h1><a href="index.html" id="logo">web hosting</a></h1> <nav> <ul id="menu"> <li class="first"><a href="index.html">home</a></li> <li><a href="hosting.html">hosting</a></li> <li><a href="features.html">features</a></li> <li><a href="about.html">about</a></li> <li id="menu_active"><a href="support.html">support</a></li> <li><a href="contacts.html">contacts</a></li> </ul> </nav> </div> <span id="slogan1">simple<span>clever</span><span>effective</span></span> </header> <!-- / header --> </div> </div> </div> <div class="main"> <!-- content --> <section id="content"> <div class="wrapper"> <article class="col3"> </article> </div> </section> <!-- / content --> </div> </div> <div class="main"> <!-- / footer --> <footer>copyright © <a href="#">domain name</a> rights reserved<br> design <a target="_blank" href="http://www.templatemonster.com/">templatemonster.com</a></footer> <!-- / footer --> </div> <script>cufon.now();</script> <div align=center>this template downloaded form <a href='http://all-free-download.com/free-website-templates/'>free website templates</a></div></body> </html>
since you're using <?php ?>, need rename .html file .php file otherwise server won't recognize when use code.
hope helps
Comments
Post a Comment