Recent content by Wes.

  1. W

    JavaScript calling a js popover from a button on a bs popup

    Hello all. I have a bs popup with two buttons. One allows the user to stay on the page if necessary, while the other allows the user to leave the page if certain criteria are met. This button calls a js function which examines the criteria and directs the code accordingly. If the criteria are...
  2. W

    PHP New to php, help needed!

    Aha! I failed to notice the dictum that the setcookie() function must appear BEFORE the <html> tag. Silly me!, although I am somewhat encouraged by the fact that this rule is not adhered to in W3 schools own example, which is no doubt, the reason why it doesn't work...
  3. W

    PHP New to php, help needed!

    And further still... I have tried to set a cookie in my code but I am still getting the same response. Here is my code: $cookie_name = "item_name"; $cookie_value = "TRM FOR TESTING"; //$name; //setcookie($cookie_name, $cookie_value, time() + (86400 * 30)...
  4. W

    PHP New to php, help needed!

    Further to my earlier reply, just tried it on my smartphone and got the same response, maybe it's a problem at their end, anyway I'll have a go at incorporating cookies into my code and let you know how I get on.
  5. W

    PHP New to php, help needed!

    Hi, thank you for your swift response! It certainly looks as if Cookies might do the trick. I've looked at the link, however when I try the examples they provide I get this: "Cookie named 'user' is not set! Note: You might have to reload the page to see the value of the cookie." Reloading the...
  6. W

    PHP New to php, help needed!

    Hello. I am re-writing a Classic ASP website in PHP, which I am new to, but learning fast. I have got a long way with the project but I have now hit a problem which I have been trying to overcome for some days, but everything I try seems to run into a brick wall. It's like this... I have a...
  7. W

    HTML html audio control cant find .mp3 in folder

    Certainly will, thank you.
  8. W

    HTML html audio control cant find .mp3 in folder

    Solved! I just needed to start the url with "http://" Thanks for your help anyway ;)
  9. W

    HTML html audio control cant find .mp3 in folder

    Yes. Actually if I just leave out the variables and type the path in longhand it still doesn't work.
  10. W

    HTML html audio control cant find .mp3 in folder

    echo $SamplesPath; = "www.fmtest.info" echo $row["Listen"]; = "/Samples/AmericanPie.mp3" so when concatenated they make the path "www.fmtest.info/Samples/AmericanPie.mp3"
  11. W

    HTML html audio control cant find .mp3 in folder

    Ah yes I see what I've done there, used a php variable in a line of html ☹️ however I'm sorry but it still doesn't work. Could you clarify a couple of things? 1. I've got an alert telling me I should have put the code in the Code Editor. How do I do that? and 2. What do you mean by "i cant...
  12. W

    HTML html audio control cant find .mp3 in folder

    Hi, thanks for your reply. The .mp3 files are in a folder called "Samples". The page which displays the Audio Control is in the root directory. It displays a list of pieces of music and the invitation to listen to each one. $row["Listen"] contains "/Samples/some_audio_file_name.mp3"...
  13. W

    HTML html audio control cant find .mp3 in folder

    Hello. I have an html audio control on my site. The .mp3 files it takes as it's source are in a folder called Samples. This has always worked fine in my old Classic ASP site, but I am now re-writing the site in PHP and I have found that the audio control will only work if my .mp3 files are in...
  14. W

    PHP Help with a small php problem

    Thanks, I'll get the hang of this yet... So as not to waste too much of your time let me get this clear. The PHP file that uses PHPMailer is 'contact.php' So :- 1. I should copy all the extracted files and folders (as shown in the picture) into the same directory as 'contact.php' ? 2. Then I...
  15. W

    PHP Help with a small php problem

    Hi thanks for your reply. Firstly the namespaces, just to be clear do you mean right at the top before anything else, or at the start of the PHP? Secondly, yes the location of the files in my webspace is as shown, the picture is of the unzipped files on my HDD.
Top