Everything posted by lw200293
-
embed a portion of one webpage into another
Well no, but I'd rather just learn how to it. Leave the legalities to me.
-
embed a portion of one webpage into another
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
-
embed a portion of one webpage into another
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
-
Pop Music Player
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
-
Form Submit Help!
YAAAAYYYY!!!!!! It's all sorted THANK YOU SOOOO MUCH!!! :D You've been a FANTASTIC help Thanks Again Lewis
-
Form Submit Help!
Is there a way for it to display more than one error at a time?
-
Form Submit Help!
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
-
Form Submit Help!
Thanks You're being so helpful!!
-
Form Submit Help!
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?
-
Form Submit Help!
It says unexpected $end at the end of the HTML is there supposed to be s close somewhere?
-
Form Submit Help!
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
-
Form Submit Help!
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.
-
Form Submit Help!
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.
-
Form Submit Help!
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
-
Form Submit Help!
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) ?>
-
Form Submit Help!
<?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
-
Form Submit Help!
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