Here is the code snippet in php to scan a text and replace the occurance of a particular word with another Click here to see the code <?php // The text string $text = "This is the text."; // The word we want to replace with a new text $oldWord = "the"; // The new [...]
Simple Mail <!–p$subject = “Test mail”; $message = “Hello! This is a simple email message.”; $from = “someonelse@example.com”; $headers = “From: $from”; mail($to,$subject,$message,$headers); echo “Mail Sent.”;?> Html Mail (You can use images and other tags in mail) // multiple recipients $to = ‘aidan@example.com’ . ‘, ‘; // note the comma $to .= ‘wez@example.com’; // subject [...]
Receiving variables using GET Method $variablename = $_GET['formvariablename']; Note :The get method passes the variables along to the the php page from the form page by appending them onto the end of the URL. For example if the form is in the page formpage.html and the php page is submit.php . Inside the form tag [...]