Jump to content

[SOLVED] T_VARIABLE error


ba55meister

Recommended Posts

Hi guys

I'm new here, just started with PHP and I hope you will help me with my problem

I'm making a script that would send email from my enquiry form in the flash movie.

I get a T_VARIABLE error in line 15 where ($sender = stripslashes($sender); ) is . here's the script

 

<?php

$sender = $_REQUEST["sender"];
$company = $_REQUEST["company"];
$telephone = $_REQUEST["telephone"];
$email = $_REQUEST["email"];
$enquiry = $_REQUEST["enquiry"];

$full_message = "Name   :".$sender."/n".
			"Company:".$company."/n".
			"Tel.   :".$telephone."/n".
			"Email  :".$email."/n".
			"IP     :".$_SERVER['REMOTE_ADDR']."/n/n".$enquiry

$sender = stripslashes($sender); 
$company = stripslashes($company); 
$telephone = stripslashes($telephone); 
$email = stripslashes($email); 
$enquiry = stripslashes($enquiry); 

$subject = $sender." enquiry form";

mail("[email protected]", $subject, $full_message, "Website Enquiry Form");

?>

 

thanks a lot

Link to comment
https://forums.phpfreaks.com/topic/148262-solved-t_variable-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.