February 26, 200917 yr Hey all just found this site after looking for a solution in google so I thought I could try here I've got some errors displayed on my pages though they seem to go away if the page is refreshed most from what I've checked on the error report in dreamweaver show most are affecting netscape browsers I've attacted the xml file if anyone can have a look and mainly I want the CSS external one sorted out also I've been trying to set up a registration page but no luck as I've gotten confused with all the ways to do it is there a easy but workable way to set this up? ResultsReport.xml
February 26, 200917 yr Have you tried validating your site using the W3C validator and seeing the errors it produces? Dreamweaver's error reporting isn't all that helpful. It would probably be better if you gave the link to a live example of the page you're experiencing errors with or pasting the html/css here.
February 26, 200917 yr Author Thanks for that will beable to check through the errors now is it possible to set up a resgistration form with just using PHP script I saw a tutorial on it and tried to set up one for my site following those instructions but at the end it says page cannot be found
February 26, 200917 yr Do you have the code you used? It's possible, just sounds like your directing the script to the wrong place.
February 26, 200917 yr Author PHP code <?php /* Subject and email variables */ $emailSubject = 'Registration data'; $webMaster = 'registration@invercargillcentral.co.nz"; /* gathering data variables */ $usernamefield = $_POST['textfield']; $passwordfield = $_POST['textfield2']; $Confrimpasswordfield = $_POST['textfield3']; $namefield = $_POST['textfield4']; $Lastnamefield = $_POST['textfield5']; $emailfield = $_POST['textfield6']; $malefield = $_POST['radiobutton1']; $femalefield = $_POST['radiobutton1']; $dayfield = $_POST['textfield7']; $monthfield = $_POST['textfield8']; $yearfield = $_POST['textfield9']; $newsletterY1field = $_POST['radiobutton2']; $newsletterN1field = $_POST['radiobutton2']; $newsletterY2field = $_POST['radiobutton1']; $newsletterN2field = $_POST['radiobutton1']; $body = <<<EOD <br><hr><br> Username: $usernamefield <br> Password: $passwordfield <br> Confrimpassword: $Confrimpasswordfield <br> Name: $namefield <br> Lastname: $Lastnamefield <br> Email: $emailfield <br> Male: $malefield <br> Female: $femalefield <br> Day: $dayfield <br> Month: $monthfield <br> Year: $yearfield <br> Newsletter1Y: $newsletterY1field <br> Newsletter2N: $newsletterN2field <br> Newsletter1Y: $newsletterY1field <br> Newsletter2N: $newsletterN2field <br> EOD; $headers = "From: $emailfield\r\n"; $headers .= "Content=type: text/html\r\n"; $success = mail($webMaster, $emailSubject, $body, $headers); /* results rendered as html */ $theResults = <<<EOD <html> <head> <title>JakesWorks - travel made easy-Homepage</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- body { background-color: #f1f1f1; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; line-height: normal; font-weight: normal; color: #666666; text-decoration: none; } --> </style> </head> <div> <div align="left">Thank you for your interest! Your email will be answered very soon!</div> </div> </body> </html> EOD; echo "$theResults"; ?> HMTL on registration page <form id="form1" name="form1" method="post" action="../HTML/PHPformprocess.php"> <table width="700" height="600" border="1" align="center" cellpadding="8" bordercolor="#000000" bgcolor="#E7EBDE"> <tr> <td colspan="3" class="HeaderColor"><h4 align="center">Member Registration</h4> <p align="left">Register for membership now and recieve an all access pass to what invercargillcentral.co.nz has to offer. You will be able to have your say about current issues in the news on the invercargillcentral.co.nz forum, enter classifieds ads, and enter the draw for the monthly major prize. </p></td> </tr> <tr style="vertical-align: top"> <td style="text-align: right" class="LabelColor" nowrap="nowrap"><label for="username"> User Name*</label> </td> <td colspan="2" class="TitleColor"><input type="text" id="username" name="textfield" /></td> </tr> <tr style="vertical-align: top"> <td style="text-align: right" class="LabelColor"><label for="password"> Password</label> </td> <td colspan="2" class="TitleColor"><p> <input name="textfield2" type="text" id="password" maxlength="13" /> <span class="style4">(Max 13 Characters)</span> </p> </td> </tr> <tr style="vertical-align: top"> <td style="text-align: right" class="LabelColor"><label for="confirmpassword"> Confirm<br /> Password*</label> </td> <td colspan="2" class="TitleColor"><input type="text" id="confirmpassword" name="textfield3" /></td> </tr> <tr style="vertical-align: top"> <td style="text-align: right" class="LabelColor"> Name </td> <td width="43%" class="TitleColor"><label for="first">First: </label> <input type="text" id="first" name="textfield4" /> </td> <td width="46%" class="TitleColor"><label for="last">Last: </label> <input type="text" id="last" name="textfield5" /> </td> </tr> <tr style="vertical-align: top"> <td style="text-align: right" class="LabelColor"><label for="email"> Email</label> </td> <td colspan="2" class="TitleColor"><input type="text" id="email" name="textfield6" size="50" /> </td> </tr> <tr style="vertical-align: top"> <td style="text-align: right" class="LabelColor"> Gender </td> <td colspan="2"><p class="TitleColor"> <label for="male">Male </label> <input type="radio" id="male" name="radiobutton1" value="radiobutton" /> <label for="female">Female </label> <input type="radio" id="female" name="radiobutton1" value="radiobutton" /> </p></td> </tr> <tr style="vertical-align: top"> <td style="text-align: right" class="LabelColor"> Birth Date </td> <td colspan="2"><table border="0" cellspacing="2" cellpadding="0"> <tr style="text-align: left"> <td width="42" class="TitleColor"><label for="month">DD</label> <input type="text" id="month" name="textfield7" size="2" /> </td> <td width="52" class="TitleColor"><label for="day">MM </label> <input type="text" id="day" name="textfield8" size="2" /> </td> <td width="79" class="TitleColor"><label for="year">YYYY </label> <input type="text" id="year" name="textfield9" size="4" /> </td> </tr> </table></td> </tr> <tr style="vertical-align: top"> <td colspan="3"><p class="StoryContentColor">Do you want to recieve invercargillcentral.co.nz e-newsletters containing information about upcoming events, entertainment guide and special offers? <br /> <label for="yes1">Yes </label> <input type="radio" id="yes1" name="radiobutton2" value="radiobutton" checked="checked" /> <br /> <label for="no1"> No </label> <input type="radio" id="no1" name="radiobutton2" value="radiobutton" /> </p> <p class="StoryContentColor">Do you wish to recieve e-newsletters from 3rd Party Contributors containing specials and offers available in Invercargill? <br /> <label for="yes2">Yes </label> <input type="radio" id="yes2" name="radiobutton3" value="radiobutton" checked="checked" /> <br /> <label for="no2"> No </label> <input type="radio" id="no2" name="radiobutton3" value="radiobutton" /> </p></td> </tr> <tr style="vertical-align: top" class="FooterColor"> <td colspan="3"><p> <input type="submit" name="SubmitName" value="Submit" /> <input type="reset" name="Reset" value="Reset" id="Submit" /> </p> </td> </tr> </table> </form>
February 27, 200917 yr Your code is a hindrance to read because there are inline style sheets everywhere. While this is accepted, please put ALL of your css in an external file and link to it by using: <link type="text/css" href="Location" rel="stylesheet"> I'm not sure if this will solve your problem, but you use the "align" attribute. This attribute is deprecated, meaning that your not supposed to use it anymore. Instead, you should use: element{ width: whatever; margin-left: auto; margin-right: auto; } which centers content. Please organize your code a little bit better Hope I helped.
February 27, 200917 yr Iris, I'm fairly sure that doesn't work on IE6 and under without a hack. The hack is that you need: body { text-align:center; position:absolute; height:100.1%; width:100%; } body div { text-align:left; } at the top of your stylesheet - otherwise elements won't centre using the margin:auto technique. It's fine in IE7, Firefox, Opera, Webkit, etc...
February 28, 200917 yr Iris, I'm fairly sure that doesn't work on IE6 and under without a hack. The hack is that you need: body { text-align:center; position:absolute; height:100.1%; width:100%; } body div { text-align:left; } at the top of your stylesheet - otherwise elements won't centre using the margin:auto technique. It's fine in IE7, Firefox, Opera, Webkit, etc... You're right! I'm sorry (Wasn't thinking about the older versions).
March 2, 200917 yr Author Got the registration done but the data given isn't showing I will check this out and see if I can spot the problem
March 2, 200917 yr Author Landed into a problem with the PHP now the registration works but no data input is sent from the forms just has name etc and blank on the spaces RegisterProcessForm.php
March 3, 200917 yr Author I got it working finally I noticed the last webform had too many forms once I set it up as 1 form with the php it worked properly thanks for the help
Create an account or sign in to comment