I have a user submission site and I want to allow them to embed videos, currently I just let them paste the embed code but I have no way of getting rid of HTML tags that would mess up the CSS (I.E. adding a div without closing it). Is there a good way to fix this?
<?php
/***** this section should be broken up into other scripts. *****/
// file to log errors
$logfile='...';
define('ERRLOG_SYS', 0);
define('ERRLOG_EMAIL', 1);
define('ERRLOG_FILE', 3);
define('ERRLOG_SAPI', 4);
define('ASCII_UPPERCASE', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')...
Thanks for the interesting trick to auto-update security, however my problem still stands.
Here are the errors in the source:
Username field is empty
Password field is empty
Here is the [updated] validation script:
<?php
/***** this section should be broken up into other scripts...
That was my bad, I thought I copied everything. I included the session_start() and the header(). However, it still doesn't work, I looked in the DOM inspector and there's nothing there either.
On my login page when a user tries to login it takes them to the next page but nothing shows up and on the source code it shows I have some errors that shouldn't be there. It seems it loses the information when it goes to validate the information.
login page
<form...
I've been trying to get to my PHPMyAdmin through cPanel and it takes like 10 minutes to get past the redirect, then 10 minutes before it stops loading and it's unfinished, meaning I can't access it at all. Can anyone help me with this?
I'm trying to set up a phpBB forum on my website but I can't get past the database settings. There is an option called "Database Server Port" an I left that blank (default) I was wondering if it was on a different port than standard which would not let it connect and connect to my db info...
You could go with the jQuery lightbox plugin. It lets you set up as many thumbnails as you want and it creates a new image on a larger scale of the clicked thumbnail. That is a good solution.
jQuery lightbox: Here
Sorry, that was a copy error. It still doesn't work after I changed that.
I used next because the td tag (which I referenced with the $()) doesn't have an href attribute and if the user doesn't have javascript enabled I want them to still be able to use the links.
On my site I am working on a jQuery script that when you click anywhere in a td (not just on the link) it will take you to the link's destination, but whenever I click it always say it is undefined which always returns a false page.
jQuery:
$(document).ready(function() {...
You need to include your login name (for cPanel) with an underscore and then your username cPanelName_dbusername (or in your case, yes, ohreally_dbusername)
Localhost is the easiest way to connect to the server.
You should create a table in your database, call it 'users' or something. A good...
Wouldn't you only have to wrap a try/catch statement around the PDO::EXECUTE()? Because nothing does anything (assuming its a PREPARE) until the execute() is called.
I have been having some trouble with my javascript that involves radio buttons. I have no idea how to check if either radio A or radio B have been selected.
My guess:
JS
<script type="text/javascript">
function validate(radios) {
var confirm = document.getElementsByName(radios).value;
var...