New to PHP -Problem getting PHP to initiate download on site?

Hello

I’m new to PHP from HTML/CSS/JavaScript and having some trouble with my site, utubeconverter.com If you enter a youtube link it doesn’t download correctly whereas it used to, instead I get an error page. If I go to download.php I find the following code:

if($_SESSION[‘hash’] != $_POST[‘hash’]){
header( ‘Location: error.html?hash’ ) ;
exit;

}

It’s ‘error.html?hash’ that I’m seeing in the URL so I’m assuming that this is where the problem lies. What can I do to fix this or where can I figure out how? I’m pulling my hair out at this point, thank you in advance for any help.

Hi,

This is happen because when you enter you tube URL in given box and submit it will post to download.php URL where it check that hash field value. And this value your download.php not found in variable. I have checked you home page. The issue is your home page form was not creating correct. Home page form have one input field named ‘hash’ which is not create correct. I should have value but it is empty.

To put it simply, you have not assigned any value to your form control named “hash”.

To get this done, make sure you’ve properly assigned correct value to your input box named “hash”…like:

Sponsor our Newsletter | Privacy Policy | Terms of Service