Little php question

Hihi! Successfully wrote my first php script for processing a html form. In one of the examples was this line:
header(“Location: index.html?mailsend”);
I do not understand the part ?mailsend.
? is a condition, but what is it doing? If I leave out this part the line/script is still redirecting to index.html.
Thank you so much!