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.

lw200293

Members
  • Joined

  • Last visited

Everything posted by lw200293

  1. Well no, but I'd rather just learn how to it. Leave the legalities to me.
  2. Ok, the band I am building a website for have recently released their latest album on itunes. I have found a way to embed the itunes page within my page. However is it possible to just display a part of the page and not the whole thing? I have attached a screen shot of what I have achieved so far. but I would like just a part of the page and without the scroll bars as well. Thanks in advance
  3. Ok, the band I am building a website for have recently released their latest album on itunes. I have found a way to embed the itunes page within my page. However is it possible to just display a part of the page and not the whole thing? I have attached a screen shot of what I have achieved so far. but I would like just a part of the page and without the scroll bars as well. Thanks in advance
  4. lw200293 posted a topic in Frontend
    I need to make a pop out music player where a user will click on a link and a pop up will appear and play music tracks off an album. It also needs to be undownloadable so there is no way the tracks can be ripped off the website. Thanks in advance
  5. YAAAAYYYY!!!!!! It's all sorted THANK YOU SOOOO MUCH!!! :D You've been a FANTASTIC help Thanks Again Lewis
  6. Is there a way for it to display more than one error at a time?
  7. Yeah OK thats brill!! Maybe a couple more things. 1) Is it possible to get it onto a pop up as opposed to the next page? Just think it would be a little better if I had a pop up message with the errors on it 2) Also need to validate email format so It will not accept an invalid email format
  8. Thanks You're being so helpful!!
  9. Gone completely off topic here . I was supposed to be trying to validate data like presence checks and email format checks and stuff. Anyway to integrate this with the current solution?
  10. It says unexpected $end at the end of the HTML is there supposed to be s close somewhere?
  11. I tried the code with out your extra bit //Create a function that will protect mysql input. function mss($input) { return mysql_real_escape_string(strip_tags($input)); } // Has the form been submitted? $send = isset($_POST['token']) ? mss($_POST['token']) : FALSE; if($send){ //If the form has been submitted, collect the posted data: $name = isset($_POST['name']) ? mss($_POST['name']) : FALSE; $email = isset($_POST['email']) ? mss($_POST['email']) : FALSE; $subject = isset($_POST['subject']) ? mss($_POST['subject']) : FALSE; $comment = isset($_POST['comment']) ? mss($_POST['comment']) : FALSE; And the form submitted fine, but when I add your bit I get the same error message Any ideas what's going wrong? FYI I haven't had any access to the MYSQL Interface it's all been set up by school and I've just coded it all in
  12. My Teacher is a good teacher. He said that for the top marks you need to do all this PHP MYSQl stuff we're the 1st year to consider this approach and he isn't really familiar with PHP cos its not on the syllabus. It's just me and a couple of others trying to get top marks in our coursework. Thanks for the help much appreciated Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'www-data'@'localhost' (using password: NO) in /www/vhosts/cromptonhouse.com/httpdocs/lwilkins/contact_us/contact_databse/form_return.php on line 96 Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /www/vhosts/cromptonhouse.com/httpdocs/lwilkins/contact_us/contact_databse/form_return.php on line 96 Ok thats done something but when I try to input data then this comes up on the return page....I get that there are errors but I dont know what is wrong Line 96 is return mysql_real_escape_string(strip_tags($input)); I understand it must be hard working with me thanks for the help.
  13. well how do I do that then? I am not at all familiar with any of this. I'm completely out of my depth and just need the code in order to validate my form without being hacked or whatever and none of these solutions are working there's obviously something I'm doing wrong. And my ICT teacher is clueless about it as well. Just need one fix that will work and stop me getting hacked and that allows me to validate all my fields. Its no good telling me what to do when I don't know how to do it.
  14. Yeah I know the website isn't going live, just on an internal school server, if it does goes live then I'll probably get someone to help me. Still doesn't answer my question though
  15. Thanks although I've tried doing this and at the risk of sounding like a moron. How do I close this section and where do I put it relation to the code I already have?? <?php $con = mysql_connect("localhost","sqlusername","sqlpassword"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("cromptonhousekids", $con); $sql="INSERT INTO lewis_contact (name,email,subject ,comment) VALUES ('$_POST[name]','$_POST[email]','$_POST[subject]' ,'$_POST[comment]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "Thank you for your getting in touch with us. We will process your information and get back to you as soon as possible"; mysql_close($con) ?>
  16. <?php $con = mysql_connect("localhost","sqlusername","sqlpassword"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("cromptonhousekids", $con); $sql="INSERT INTO lewis_contact (name,email,subject ,comment) VALUES ('$_POST[name]','$_POST','$_POST[subject]' ,'$_POST[comment]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "Thank you for your getting in touch with us. We will process your information and get back to you as soon as possible"; mysql_close($con) ?> This code is at the beginning of the page. The one that allows me to submit my form. Where in this would you're code go? Because I can imagine that there should be a logical order Thanks for your help
  17. I am building a website for my A2 ICT project and it involves including an input form of some kind. I am using MYSQL to input data from a form on my website which is all working finde, however the problem occurs when I come to validate the input data. I need to presence check a Name field and comment field. I also need to presence check and format check an e-mail address. I am very new to all this please explain as clearly as possible, try to avoid jargon and the exact code would be VERY helpful

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.