-3

<?php echo $_GET['msg'];?>This is the line of code that i used on my contact.php. And

if(mail($to,$subject,$message,$headers))
    header("Location:../contact.php?msg=Successful Submission! Thank You for Contacting us.");
else
    header("Location:../contact.php?msg=Error To send Email !");

I just see the 'msg' in this code what can be done?

1 Answers1

1

Check "msg" exists first:

<?php if(!empty($_GET['msg']) echo $_GET['msg'];?>
BT643
  • 3,495
  • 5
  • 34
  • 55