
Hi, I'm new to PHP, but I am familiar with another progaming laungage, so dont get to complex unless your good at explaining plz
I am trying to create a log in, and I want it to look fancy when you click the submit button, so I made a loading gif appear. I want it to wait 1 second, before removing itself. Im stuck on the removing part, as I dont know how to call the image, this is my PHP code:
- Code: Select all
<?php
$Enter = $_POST['enter'];
$User = $_POST['user'];
$Pass = $_POST['pass'];
if (isset($_POST['enter'])) {
echo "<img src='images/load.gif' name='img' width='220' height='19'>";
sleep(3);
imagedestroy(???);
}
?>
I will soon replace the sleep(3); with a database connection.
You can see that where I put the ??? is where im stuck on. If anyone could help, that would be great



