Forums

Form action (1 post)

  1. lgbtq_sunysb
    Member
    Posted 6 months ago #

    I got a form with some text inputs and a button. When i click the submit part, it takes me to a new page where i have the following piece of code..

    <?php
    echo ("UPLOADING PUBLICATION....");
    
    	$title=$_POST['title'];
    	$year=$_POST['year'];
    	$authors=$_POST['author'];
    	$publication=$_POST['publication'];
    	$file=$_POST['file'];
    
    	echo ("\nFILE 		: " . $file);
    	echo ("\nTITLE		: " . $title);
    	echo ("\nYEAR 		: " . $year);
    	echo ("\nAUTHORS 		: " . $authors);
    	echo ("\nPUBLICATION 	: " . $publication);
    
    ?>

    I m just printing the form values..
    This does not work at times. When i click the submit button, it redirects to this page but it throws 404 PAGE NOT FOUND. But the url is correct in the address bar is absolutely correct!

    I am not sure what is the reason behind this erroneous behavior!!

Reply

You must log in to post.

About this Topic

Tags