Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mdpdesigns

Members
  • Joined

  • Last visited

Everything posted by mdpdesigns

  1. Hey I have added this code to my php process. I get the message saying spam found but it still sends the e-mail here is the page I am trying to secure the form for LINK here is my php code also <?php /* Variables */ $emailSubject = 'Website Message!!'; $webMaster = 'howlomogo@hotmail.com'; /*check for spam */ if (preg_match_all("/<a|http:/i", implode($_POST), $out)) { // check for <a and http: echo "Found some spam"; } if (preg_match( "/bcc:|cc:|multipart|url|Content-Type:/i", implode($_POST))) { // check for spam indicators echo "Found some spam"; } /* Gathering dta variables */ $firstnameField = $_POST['firstname']; $lastnameField = $_POST['lastname']; $address1Field = $_POST['address1']; $address2Field = $_POST['address2']; $countyField = $_POST['county']; $postcodeField = $_POST['postcode']; $telephoneField = $_POST['telephone']; $mobileField = $_POST['mobile']; $emailField = $_POST['email']; $maxrentField = $_POST['maxrent']; $descField = $_POST['desc']; $desc1Field = $_POST['desc1']; /* this EOP is what will be displayed in the email */ $body = <<<EOD <br /><br /> <h1>Landlord Enquiry</h1> Name:$firstnameField $lastnameField<br /><br /> Address:<br /> $address1Field<br /> $address2Field<br /> $countyField<br /> $postcodeField<br /><br /> Telephone:$telephoneField<br /><br /> Mobile:$mobileField<br /><br /> Email:$emailField<br /><br /> Service they want: $desc1Field 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 <!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>ABBA,lettings,Portsmouth,Southsea,Rentals,Properties,To,Let</title> <style type="text/css"> <!-- --> </style> <link rel="stylesheet" type="text/css" href="abba_style.css" /> </head> <body> <div class="container"> <div class="header"> <div class="header-left"> </div> </div> <div class="main"> <div id="nav"> <ul> <li><a href="index.html">Home</a></li> <li><a href="property_search.html">Property Search</a></li> <li><a href="tenant_info.html">Tenant Info</a></li> <li><a href="landlord_info.html">Landlord Info</a></li> <li><a href="property_wanted.html">Property Wanted List</a></li> <li><a href="contact_us.html">Contact Us</a></li> </ul> </div> <div class="toptest"></div> <div class="landlord"> <p class="center">Thank you for your enquiry we will get back to you within 48 hours if you do not hear from us please try phoning or e-mailing us directly</p> </div> <div id="footerlinks" class="footer"> <a href="index.html">Home</a> | <a href="property_search.html">Property Search</a> | <a href="tenant_info.html">Tenant Info</a> | <a href="tenant_form.html">Tenant Form</a> | <a href="landlord_info.html">Landlord Info</a> | <a href="landlord_form.html">Landlord Form</a> | <a href="advertise.html">Advertising</a> | <a href="property_wanted.html">Property Wanted List</a> | <a href="contact_us.html">Contact Us</a> <p class="center"><a href="http://www.mdpdesigns.co.uk">Web Design</a> by MDPdesigns</p> </div> </div> </div> </body> </html> EOD; echo "$theResults"; ?> I am not sure what I am doing wrong? If anyone has any ideas please lemme know Cheers Matt
  2. Hi my client needs an application on the website where you can talk to an advicer online like a kind of chat room. I am wondering if anyone knows anywhere where you can purchase an application to set this up? Or has any info on this sort of thing Cheers Matt
  3. Ha i thought it would be something simple like that lol. Cheers
  4. Hi sorry I want the grass so it is only at the bottom of the page as in at the bottom when you scroll down not on the screen all the time this seems like it should be simple to do :s
  5. mdpdesigns posted a topic in Frontend
    Hi I am having problems with my css I am looking to overlap my footer image in front of my main web page so when you scroll down it will appear my footer is in front of the page content however I also want the footer to be 100% of the page screen so cannot wrap it around a container div. I think I need to use z-index but have no experience with it also wondering if you need to use absolute positioning with it? Here are links to a test page the problem is at the bottom of the page TEST PAGE CSS:Link to CSS So basically I need it so for this example the grass would overlap the brown box. and the brown box would be shown behind the grass. Any help would be greatly appreciated Cheers Matt
  6. Anyone else??
  7. Hi I am really interested in using this technique as the captcha says it is not supported :s How would I use this method if my input boxes are: $firstnameField $lastnameField $address1Field $address2Field cannot find much on this in google...
  8. And you also support the CMS thing i was on about lol?. The £34 offer seems pretty good do you do discount for domain names if you buy hosting?
  9. Hi, I do not know much about cms or hosting so sorry in advance for the noob question, I am wondering if I set up a cms for someone at say cushycms.com to update their site, would this work with any hosting provider or will it be something that some do not support? I am also looking for a cheap hosting provider in the UK which supports PHP if anyone has any ideas Cheers Matt
  10. Hey, Have you tryed using the float command? something like #leftcol { width:500px; float:left; background:#330099; } #rightcol { width:200px; float:left; background:#330099; padding:10px 0px; } div.container{ width:700px; float:left; } then in html: <div class="container"> <div id="left"> </div> <div id="right"> </div> </div>
  11. Hi I am wondering which way you think is the best to achieve equal height columns in css and have content under the columns. I have found 2 ways the faux columns way or the javascript way but am wondering if anyone knows what would be the best one or knows any other simple ways to do this sorry I do not know much about this. Cheers Matt
  12. Thanks alot it all seems a lot clearer now, hopefully no more browser issues well for the time being anyway
  13. Wow thanks you read my mind I was just about to ask about that. also if I use this code <!--[if IE]> Some CssCode<![endif]--> will this apply for ALL versions of Internet explorer or will I have to specify each version separately? Cheers Matt
  14. mdpdesigns posted a topic in Frontend
    Hi my pages are not displaying properly in internet explorer but are fine in Firefox... I am looking to fix the problem and am wondering if the code below is the best to display pages correctly in Internet Explorer (If the css pages are already tailored for Firefox / Safari)... is it easiest just make another css page which is suited for internet explorer? <!--[if IE 6]> <link rel="stylesheet" type="text/css" href="blah.css" /> <![endif]--> or does anyone know any better ways to do this?? Cheers Matt
  15. Cosham is the way forward lol
  16. Thanks for the replys very helpful. One day I will have the coding skill to beat these bots
  17. Does anyone know any good contact form codes which will be spam free as I keep getting spam and is getting very annoying
  18. mdpdesigns posted a topic in Frontend
    Hi I need the footer of my website to align with the bottom of the page it works fine in Firefox and Safari but there is a gap when I look at it in IE and is horrible I dont think I can use absolute positioning either any other way I can do it http://www.mdpdesigns.co.uk/abba_lettings/index1.html Cheers Matt
  19. Thanks for the advice I will get on it
  20. Hi this is one of my first websites please give your honest opinion with any advice there are still few browser faults which is mainly in IE and the banner does not work in Firefox. The content is also not complete. Website Cheers Matt
  21. Is there any way to stretch an image to fill a div I cannot find a decent way to do this?
  22. The problem I am having is when I fill the e-mail field in it does not send? I can fill in all the other parts but when I fill in the e-mail field it does not work with Internet explorer or Firefox AHH any ideas? http://www.mdpdesigns.co.uk/abba_lettings/tenant_form.html here is where the form is.
  23. The code is working in Firefox and Safari on Mac but is not working on Internet Explorer on windows. I am not sure why but am wondering if it has anything to do with securing the form? there are no error messages, the e-mail just does not come through. Form Code <form action="formprocess.php" method="post"> <p><label for="firstname">First Name</label> <input type="text" id="firstname" name="firstname" /></p> <p><label for="lastname">Last Name</label> <input type="text" id="lastname" name="lastname" /></p> <p><label for="address1">Address 1</label> <input type="text" id="address1" name="address1" /></p> <p><label for="address2">Address 2</label> <input type="text" id="address2" name="address2" /></p> <p><label for="country">Country</label> <input type="text" id="country" name="country" /></p> <p><label for="postcode">Postcode</label> <input type="text" id="postcode" name="postcode" /></p> <p><label for="telephone">Telephone</label> <input type="text" id="telephone" name="telephone" /></p> <p><label for="mobile">Mobile</label> <input type="text" id="mobile" name="mobile" /></p> <p><label for="email">E-mail</label> <input type="text" id="email" name="email" /></p> <p><label for="maxrent">Max Rent (£)</label> <input type="text" id="maxrent" name="maxrent" /></p> <input type="submit" name="Send" value="Send" id="Send" /> <input type="reset" name="Clear" value="Clear" id="Clear" /> </form> FormProcess.PHP Code <title>Contact</title><?php /* Variables */ $emailSubject = 'Website Message!!'; $webMaster = 'howlomogo@hotmail.com'; /* Gathering dta variables */ $firstnameField = $_POST['firstname']; $lastnameField = $_POST['lastname']; $address1Field = $_POST['address1']; $address2Field = $_POST['address2']; $countryField = $_POST['country']; $postcodeField = $_POST['postcode']; $telephoneField = $_POST['telephone']; $mobileField = $_POST['mobile']; $emailField = $_POST['email']; $maxrentField = $_POST['maxrent']; /* this EOP is what will be displayed in the email */ $body = <<<EOD <br /><br /> Name:$firstnameField $lastnameField<br /><br /> Address:<br /> $address1Field<br /> $address2Field<br /> $countryField<br /> $postcodeField<br /><br /> Telephone:$telephoneField<br /><br /> Mobile:$mobileField<br /><br /> Email:$emailField<br /><br /> Max Rent:£$maxrentField 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 <!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>ABBA,lettings,Portsmouth,Southsea,Rentals,Properties,To,Let</title> <style type="text/css"> <!-- --> </style> <link rel="stylesheet" type="text/css" href="abba_styles.css" /> </head> <body> HELLO </body> </html> Cheers Matt EOD; echo "$theResults"; ?>
  24. Wow genius thanks ALOT that has saved me a lot of hours so it was only because I had the ;s there ?
  25. Hi my e-mail form has decided to stop working and I am not sure why it has been working in the past and I have not changed any of the code. I have the contact page and also a php page. Here is the code. CODE For contact form on page contact.html <table class="center" cellspacing="10px"> <tr> <td>Email:</td> <td>howlomogo@hotmail (.) com</td> </tr> </table> <form action="contactprocess.php" method="post" class="conbox"> <table class="con" cellspacing="10px"> <tr> <td><div align="right">Name: </div></td> <td><input class="con" name="name" type="text" id="name" maxlength="40" /></td> </tr> <tr> <td><div align="right">Email: </div></td> <td><input class="con" name="email" type="text" id="email" maxlength="40" /></td> </tr> <tr> <td><div align="right">Message: </div></td> <td><textarea class="con" name="message" id="message" cols="35" rows="7"></textarea></td> </tr> <tr> <td><input type="submit" name="Send" value="Send" id="Send" /></td> <td><input type="reset" name="Clear" value="Clear" id="Clear" /></td> </tr> </table> </form> Code with php script contactprocess.php <title>Contact</title><?php /* Variables */ $emailSubject = 'Website Message!!'; $webMaster = 'howlomogo@hotmail.com';s /* Gathering dta variables */ $nameField = $_POST['name']; $emailField = $_POST['email']; $messageField = $_POST['message']; /* this EOP is what will be displayed in the email */ $body = <<<EOD <br><br> Email:$emailField<br> Name:$nameField<br> Message:$messageField<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 <!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>Contact</title> <link href="stylesheet.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- body { background-color: #000000; } --> </style> <script type="text/javascript"> var timeout = 500; var closetimer = 0; var ddmenuitem = 0; function mopen(id) { mcancelclosetime(); if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; ddmenuitem = document.getElementById(id); ddmenuitem.style.visibility = 'visible'; } function mclose() { if(ddmenuitem) ddmenuitem.style.visibility = 'hidden'; } function mclosetime() { closetimer = window.setTimeout(mclose, timeout); } function mcancelclosetime() { if(closetimer) { window.clearTimeout(closetimer); closetimer = null; } } document.onclick = mclose; </script> </head> <body> <div id="body"> <div id="header"></div> <div id="middle"> <div id="leftmiddle"> <ul id="sddm"> <li><a href="index.html">Home</a></li> <li><a href="about.html" onmouseover="mopen('m2')" onmouseout="mclosetime()">About</a> <div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"> <a href="about.html">About Me</a> <a href="http://mdpdesigns.blogspot.com">Blog</a> </div> </li> <li><a href="illustration.html" onmouseover="mopen('m3')" onmouseout="mclosetime()">Portfolio</a> <div id="m3" onmouseover="mcancelclosetime()" onmouseout="mclosetime()"> <a href="illustration.html">Illustration</a> <a href="photography.html">Photography</a> <a href="interactive.html">Interactive</a> <a href="webdesign.html">Web Design</a> </div> </li> <li><a href="contact.html">Contact</a></li> </ul> <div id="bleft"></div> </div> <div id="rightmiddle"> <br /><br /><br /><br /> <p class="htext">Thank you for your message I will get back to you ASAP... <br /><br /><br /> Matt </p> </div> </div> <div id="footer"> <p> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> </p> <p><a href="index.html">Home</a> | <a href="about.html">About</a> | <a href="webdesign.html">Web Design</a> | <a href="interactive.html">Interactive</a> | <a href="photography.html">Photography</a> | <a href="illustration.html">Illustration</a> | <a href="http://mdpdesigns.blogspot.com/">Blog</a> | <a href="contact.html">Contact</a><br /> © 2008 Matthew Pilcher </p> </div> </div> </body> </html> EOD; echo "$theResults"; ?> It shows this error Parse error: syntax error, unexpected T_VARIABLE in /web/guide/abbaplus/public_html/contactprocess.php on line 10 If you have any ideas why this isnt working please let me know Thanks Matt

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.