Why does the submission go to a blank page?
vec
vec 2018-08-10 20:32:02
0
4
1379

<form>

<input type="text" name="year" placeholder="Please enter the year">

<input type="submit" name ="Calculation">


##</form>

<?php

$year=$_GET['year '];

if($year%4==0&&$year 0==0||$year@0==0)

{

echo " This year is a leap year";

}

else{

echo "This year is a leap year";

}


?>


vec
vec

reply all(2)
ll

The code can run normally without the problems you mentioned

  • reply When I go to SUBMIT, I get a blank page.
    vec author 2018-08-15 18:56:29
呀啦

Can you try changing the get method to post?

  • reply Thank you but it still doesn't work
    vec author 2018-08-15 18:56:51
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template