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.

Lou_mcg

Members
  • Joined

  • Last visited

  1. Hi there, I only know a little php at this stage, and usually just find scripts and modify them as appropriate, however this is proving a little too difficult. Basically I want to add an antispam question to a form which I've done in the HTML: <form id="form" action="contact.php" method="post"> <table> <tr> <td align="right"><label for="name">Name:</label></td><td><input type="text" name="name" id="name" /></td> </tr> <tr> <td align="right"><label for="email">Email:</label></td><td><input type="text" name="email" id="email" /></td> </tr> <tr> <td align="right"><label for="telephone">Telephone:</label></td><td><input name="telephone" type="text" id="telephone" /></td> </tr> <tr> <td align="right"><label for="field">Anti-spam question:</label></td><td><input name="field" type="text" id="field" value="Complete the Beatles lyric: 'all you need is...'?" onfocus="if(this.value==this.defaultValue) this.value='';"/></td> </tr> <tr> <td align="right"><label for="message">Message:</label></td><td><textarea name="message"></textarea></td> </tr> <tr> <td colspan="2" align="right"><img src="images/contactdots.gif" width="338" height="10" alt="" /></td> </tr> <tr> <td colspan="2" align="right"><input id="button" type="Submit" value="SUBMIT" alt="submit" /></td> </tr> </table> </form> As you can see, the form is processed via contact.php, however I'm not sure how to validate the form anti-spam question. I have originally just been using javascript for validation, however I realise this might need to change to PHP. If anyone could advise of the correct code to validate this and then get it sent via contact.php which has the following code so far, that would be really appreciated... <?php if($_SERVER['REQUEST_METHOD'] == "POST"){ // Pick up the form data and assign it to variables $name = stripslashes($_POST['name']); $email = stripslashes($_POST['email']); $tel = $_POST['telephone']; $comments = stripslashes($_POST['message']); // Build the email (replace the address in the $to section with your own) $to = 'myemail@email.com'; $subject = "The Vintage Affair Web Quote enquiry"; $comments = "Name: $name \nEmail: $email \nTelephone: $tel \n\nDetails: $comments"; $headers = "From: myemail@email.com" . PHP_EOL . "Reply-To: myemail@email.com"; // Send the mail using PHPs mail() function mail($to, $subject, $comments, $headers); // Redirect header("Location: thankyou.html"); } ?>
  2. Hi There, I have a client who wants to display 6 videos on one page of his website. I haven't got a lot of experience with videos on sites, so not sure of the correct recommendations for this, but initially 6 videos seems quite a lot. Is this likely to slow the page down a great deal? He doesn't want them hosted elsewhere like YouTube, so I'm not sure what else to suggest. I was going to to create the playback etc by converting them to .swf as this is the only way I know of. Does anyone have any experience with videos? Or have any recommendations for me? All gratefully received. Thanks Louisa
  3. Can you try clicking on the edit link in the first profile block? It seems the errors show only in the popups. Thanks
  4. Sorry didn't mean to cross post, - realised I posted in wrong forum initially but couldn't delete it! Here's the link - it doesn't work in IE: http://dl.dropbox.com/u/14905951/ChoreSwap/code/my_profile.html Thanks
  5. Hi There, I have implemented PIE.htc behavior so I can have rounded corners on my site without tonnes of images. This seemed to work great on all pages apart from the ones which use Jquery functions. So all I want to do is, on my ie only stylesheet, override the css behavior link 'behavior: url(PIE2.htc)' so that there are no rounded corners applied on the jquery element. However I can't seem to do this. I've tried 'behavior: none' but that doesn't seem to work. Does anyone know how to do this, or can you think of any other solution? Many thanks
  6. Hi There, I have implemented PIE.htc behavior so I can have rounded corners on my site without tonnes of images. This seemed to work great on all pages apart from the ones which use Jquery functions. So all I want to do is, on my ie only stylesheet, override the css behavior link 'behavior: url(PIE2.htc)' so that there are no rounded corners applied on the jquery element. However I can't seem to do this. I've tried 'behavior: none' but that doesn't seem to work. Does anyone know how to do this, or can you think of any other solution? Many thanks
  7. That's great, thanks. Just what I thought regarding the images, but nice to get back-up on that! Thanks I'll implement SSL then.
  8. Hi There, It's a shame I've only just come across these forums! But will definitely be visiting regularly now. Hopefully you can help me with a current issue that's cropped up for me... I have recently built a website for a child's nursery company who are now saying that according to data protection laws they meed to make secure the information that is sent from their website via email. They basically have 2 forms which collect details, but no credit card info is taken. This is a new area for me, and I know I need to offer the correct advice so I'm not sued down the line if the security isn't good enough! So I was wondering what measures need to be in place so that they're complying in the right way. Is adding SSL to the form pages enough? Also they have been told they need to make secure the photos they have on site and have asked if it is possible to ensure that you can't download/save any of the photos that appear in their pages. - Personally I can't see how this is possible! Even if you disable right click on images, people can still screen grab can't they? Any advice is welcome! Many thanks in advance Louisa

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.