Here is my script

<?php
  $Name = $_REQUEST['Name'] ;
  $Subject = $_REQUEST['Subject'] ;
  $Email = $_REQUEST['Email'] ;
  $Message = $_REQUEST['Message'] ;
 
  mail( "email@email.com", "Contact form",
     $Message, "From: $Email" );
	
  header( "Location: http://randomaddress.com" );
?>

How can i prevent mysql injection?

Thanks

where is mysql to inject?

you only have to prevent from spams.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.