I have a form in my webpage in which ‘action’ specifies a php file to execute a query. I want to execute that query on button press and open a new web page named details.php. How can I do that? the query works fine..after executing the query it should open the details.php page.My code for output printing is given below..thanks in advance
if(move_uploaded_file($_FILES['photo']['tmp_name'], $target))
{
echo "The image has been uploaded, and your information has been added";
}
else {
echo "Sorry, there was a problem uploading your file.";
}
I need this result to be printed in a webpage(page dimensions same as that of previous data entering page) with a home button
It is ok even if the same page displays the result, but then the data in form should be cleared, so that user can enter new data
In it’s simplest form,
Then in
details.phpPS : Don’t forget to sanitize all data