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.

SvenVDB

Members
  • Joined

  • Last visited

Everything posted by SvenVDB

  1. Hi all, I'm working at my site and after testing It seems to be that my contact form isn't working anymore.. It's weird 'cause I didn't change anything in that code.. Can someone watch my code and tell me why it's not working? I don't get a fault message, everything looks fine.. only I don't get the email! My website: http://www.smuldoosje.be Here's the code: <?php $your_email ='blabla@hotmail.com';// <<=== update to your email address session_start(); $errors = ''; $name = ''; $visitor_email = ''; $user_message = ''; if(isset($_POST['submit'])) { $name = $_POST['name']; $visitor_email = $_POST['email']; $user_message = $_POST['message']; ///------------Do Validations------------- if(empty($name)||empty($visitor_email)) { $errors .= "\n Naam en email zijn verplichte velden. "; } if(IsInjected($visitor_email)) { $errors .= "\n Fout email adres ingevuld!"; } if(empty($_SESSION['6_letters_code'] ) || strcasecmp($_SESSION['6_letters_code'], $_POST['6_letters_code']) != 0) { //Note: the captcha code is compared case insensitively. //if you want case sensitive match, update the check above to // strcmp() $errors .= "\n De captcha code is niet correct, gelieve de juiste code in te vullen!"; } if(empty($errors)) { //send the email $to = $your_email; $subject="Contactformulier smuldoosje.be"; $from = $your_email; $ip = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : ''; $body = "$name heeft contact opgenomen via de website:\n". "Naam: $name\n". "Email: $visitor_email \n". "Bericht: \n ". "$user_message\n". "IP: $ip\n"; $headers = "Van: $from \r\n"; $headers .= "Antwoorden naar: $visitor_email \r\n"; mail($to, $subject, $body,$headers); header('Location: bedankt.html'); } } // Function to validate against any email injection attempts function IsInjected($str) { $injections = array('(\n+)', '(\r+)', '(\t+)', '(%0A+)', '(%0D+)', '(%08+)', '(%09+)' ); $inject = join('|', $injections); $inject = "/$inject/i"; if(preg_match($inject,$str)) { return true; } else { return false; } } ?> <!DOCTYPE HTML> <html><!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" --> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- InstanceBeginEditable name="doctitle" --> <title>U kan ons op elk moment van de dag contacteren voor informatie, vragen of bestellingen.</title> <!-- define some style elements--> <style> .err { font-family : Verdana, Helvetica, sans-serif; font-size : 12px; color: red; } #contact_form_errorloc li { list-style-type: none; } </style> <!-- a helper script for vaidating the form--> <script language="JavaScript" src="scripts/gen_validatorv31.js" type="text/javascript"></script> <!-- InstanceEndEditable --> <!-- InstanceBeginEditable name="head" --> <!-- InstanceEndEditable --> <link href="opmaak.css" rel="stylesheet" type="text/css"> <link rel="shortcut icon" href="favicon.ico" /> <!-- InstanceParam name="id" type="text" value="contact" --> </head> <body id="contact"> <div class="container"> <div class="header"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="middle"> </td> <td align="center"><a href="index.html"><img src="images/logos/logosmul.jpg" alt="Logo van het Smuldoosje uit Olen" width="413" height="274" class="fotorandenuit" title="Logo van het Smuldoosje uit Olen"></a></td> <td align="right" valign="middle"> </td> </tr> </table> <img src="images/horizontalelijn.png" width="940" height="8" alt="horizontale lijn"><br/> <ul id="menu"> <li id="nav-home"><a href="index.html">Home</a></li> <li id="nav-cupcakes"><a href="cupcakes.html">Cupcakes</a></li> <li id="nav-taarten"><a href="taarten.html">Taarten</a></li> <li id="nav-homemade"><a href="home-made.html">Home-Made</a></li> <li id="nav-diybox"><a href="diybox.html">DIY Box</a></li> <li id="nav-extra"><a href="extra.html">Extra</a></li> <li id="nav-bestellen"><a href="bestellen.html">Bestellen</a></li> <li id="nav-contact"><a href="contactformulier.php">Contact</a></li> </ul> </div> <!-- end header --> <div class="content"> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" id="tabel_content"> <tr> <td><!-- InstanceBeginEditable name="inhoud" --> <form method="post" name="contact_form" enctype="multipart/form-data" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" onsubmit="return validatePage1();"> <br> <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="50%" align="center" valign="top"><table width="70%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="2"></td> </tr> <tr> <td colspan="2" align="center"><img src="images/contact_smuldoosje.jpg" alt="cupcakes met een fluo versiering" title="cupcakes met een fluo versiering" width="283" height="195"></td> </tr> <tr> <td width="15%" align="center"> </td> <td width="85%"> </td> </tr> <tr> <td align="center"><img src="images/logos/adres.png" width="12" height="12" alt="adres van het smuldoosje" title="adres van het smuldoosje"></td> <td>Dominique Cannaerts</td> </tr> <tr> <td align="center"> </td> <td>Geelseweg 11</td> </tr> <tr> <td> </td> <td>2250 Olen</td> </tr> <tr> <td align="center" valign="bottom"><img src="images/logos/telefoon.png" width="12" height="12" alt="telefoonnummer van het smuldoosje" title="telefoonnummer van het smuldoosje"></td> <td class="extrapadding">014/22.54.91</td> </tr> <tr> <td> </td> <td>0476/25.91.17</td> </tr> <tr> <td align="center" valign="bottom"><img src="images/logos/email.png" width="12" height="12" alt="emailadres van het smuldoosje" title="emailadres van het smuldoosje"></td> <td class="extrapadding">info@smuldoosje.be </td> </tr> <tr> <td align="center"><img src="images/logos/website.png" width="12" height="12" alt="de website van het smuldoosje" title="de website van het smuldoosje"></td> <td>www.smuldoosje.be </td> </tr> <tr> <td align="center"> </td> <td> </td> </tr> <tr> <td align="center"><img src="images/logos/pijl.gif" width="12" height="12" alt="ondernemingsnummer van het smuldoosje" title="ondernemingsnummer van het smuldoosje"></td> <td>Ondernemingsnummer:<br> 0701.435.506 </td> </tr> <tr> <td align="center"><img src="images/logos/pijl.gif" width="12" height="12" alt="bankrekeningnummer van het smuldoosje" title="bankrekeningnummer van het smuldoosje"></td> <td>Bankrekeningnummer:<br> KBC 413-2182861-30</td> </tr> <tr> <td colspan="2" align="center"></td> </tr> </table></td><td> </td> <td width="50%" align="center" valign="top"><table width="100%" border="0" cellpadding="5" cellspacing="0" id="contactformulier"> <tr> <td colspan="2"><?php if(!empty($errors)){ echo "<div id='error' class='err'>".nl2br($errors)."</div>"; } ?><div id='contact_form_errorloc' class='err'></div><h1>Contactformulier</h1></td> </tr> <tr> <td align="left" valign="top">Naam:</td> <td align="left" valign="top"><input type="text" name="name" value='<?php echo htmlentities($name) ?>'></td> </tr> <tr> <td align="left" valign="top">E-mail:</td> <td align="left" valign="top"><input type="text" name="email" value='<?php echo htmlentities($visitor_email) ?>'></td> </tr> <tr> <td align="left" valign="top">Bericht:</td> <td align="left" valign="top"><textarea name="message" rows=8 cols=30><?php echo htmlentities($user_message) ?></textarea></td> </tr> <tr> <td align="left" valign="top"> </td> <td align="left" valign="top"><p><img src="captcha_code_file.php?rand=<?php echo rand(); ?>" id='captchaimg' ><br> Vul bovenstaande code in:<br> <input id="6_letters_code" name="6_letters_code" type="text"> <br> Kan de afbeelding niet lezen? Klik dan <a href="javascript: refreshCaptcha();">hier</a> om te vernieuwen. <br> </p></td> </tr> <tr> <td align="left" valign="top"> </td> <td align="left" valign="top"><input type="submit" value="Verzenden" name='submit'></td> </tr> </table></td> </tr> </table><p> </p></form> <script language="JavaScript"> // Code for validating the form // Visit http://www.javascript-coder.com/html-form/javascript-form-validation.phtml // for details var frmvalidator = new Validator("contact_form"); //remove the following two lines if you like error message box popups frmvalidator.EnableOnPageErrorDisplaySingleBox(); frmvalidator.EnableMsgsTogether(); frmvalidator.addValidation("name","req","Gelieve uw naam in te vullen"); frmvalidator.addValidation("email","req","Gelieve uw email adres in te vullen"); frmvalidator.addValidation("email","email","Gelieve een geldig email adres in te vullen"); </script> <script language='JavaScript' type='text/javascript'> function refreshCaptcha() { var img = document.images['captchaimg']; img.src = img.src.substring(0,img.src.lastIndexOf("?"))+"?rand="+Math.random()*1000; } </script><!-- InstanceEndEditable --></td> </tr> </table> <!-- end .content --> </div> <div class="footer"> <table width="100%" align="center"><tr><td align="center"><img src="images/horizontalelijn.png" alt="horizontale lijn" width="940" height="8" class="footerimage"></td></tr></table> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left" valign="middle" class="paddingnul"> </td> <td align="center" valign="middle"><span class="footertekst">Dominique Cannaerts | Geelseweg 11, 2250 Olen | 0476/25.91.17 <!-- Start of belstat.be Counter --> <script type="text/javascript"> <!-- d=document; pag='';col='';scr=0;b=navigator.appName; scr=screen.width+'*'+screen.height; ref=parent==self ? escape(window.document.referrer) : escape(top.document.referrer); pag=escape(d.URL); if (b != 'Netscape') {col=screen.colorDepth} else {col=screen.pixelDepth} if(col=='undefined'){col='';} d.write('<a href="http://www.belstat.be/viewstat.asp?UserID=smuldoos&' + 'amp;' + 'lang=nl" target="_blank"><img border="0" src="http://www.belstat.be/regstat.aspx?'); d.write('UserID=smuldoos&BColor=darkgreen&refer=' + ref + '&pag=' + pag + '&b=' + b + '&col=' + col + '&scr=' + scr + '"'); d.write(' align="left" width="16" height="16" alt="Website statistieken van Het Smuldoosje"><\/a>'); // --> </script> <!-- End of belstat.be Counter --></span></td> <td align="right" valign="middle"><a href="http://nl-nl.facebook.com/Smuldoosje"><img src="images/logos/facebook_smuldoosje.png" alt="Je vindt ons ook op facebook!" title="Je vindt ons ook op facebook!" width="32" height="32" class="fotorandenuit"></a></span></td> </tr> </table> <!-- end .footer --></div> <!-- end .container --></div> </body> <!-- InstanceEnd --></html>
  2. I've had it in all my browsers. I've solved this, by deleting my website of my space, and upload it back afterwards. Strange things!
  3. Hi All, it's very strange, but since yesterday I can't click any link on my website. It always goes to the same (home)page.. Does anyone knows a solution for this please? thank you. My site: http://www.futsal-kempen.be/wk2014
  4. Hi all, I've a small issue: you see on my website: http://www.futsal-kempen.be/wk2014/index.php?location=login When you go to the section "inloggen", you get a table with for rows.. the 4th row is a row with two buttons in "Login" and "wachtwoord vergeten" .. I don't get them on the same line.. Does anyone know how to fix it? Thank you!
  5. I know how to make a svg picture, but I've never worked with it. Can you give me an example for the php code?
  6. Hi all, when you go to this webpage: http://www.doncartel.nl/wk2010/index.php?location=stats you see a sort off "poll results".. Can anyone tell me how I get something like this? So I mean the graphic bar with the procents... When I use firebug, I see it's all done with css classes and stuff... but I don't know how to start with it. Thank you for your help!
  7. I've solved this, by assigning to each TD and TH a class "align left" or align center". This works but it's probably not the best option
  8. Hi all, I've a little css issue on my website. If you go to: http://www.futsal-kempen.be/wk2014/index.php?location=score , you see a raking table. Alle content in that table is centered. But I want the collumn "naam" to be aligned to the left.. I've tried to do this, with adding a css class in the php file, but it seems not to work.. It works in the table header, but not in the cells under the table header. Does someone sees the problem why it won't work? Thank you!
  9. But in large screens the table is too small. I want the table to have the same width like the "pages-table" above.
  10. Hi everyone, I'm stuck with a little problem at my website. I'm making a website for the WC 2014 soccer in Brasil. If you click on this link you get a table at the middle of the screen. If you're looking this table in large screens, the table is small. When you look on mobile phones, the table fits well. Is there a possibilty to make the table width larger in the big screens, but still the same in mobile screens? Thanks for your help. Sven

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.