search

Home  >  Q&A  >  body text

Why does the submission go to a blank page?

<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";

}


?>


vecvec2327 days ago1347

reply all(4)I'll reply

  • ll

    ll2018-08-13 17:50:35

    The code can run normally without the problems you mentioned

    reply
    0
  • vec

    When I go to SUBMIT, I get a blank page.

    vec · 2018-08-15 18:56:29
  • 呀啦

    呀啦2018-08-11 22:01:11

    Can you try changing the get method to post?

    reply
    0
  • vec

    Thank you but it still doesn't work

    vec · 2018-08-15 18:56:51
  • Cancelreply