I have a page
- Code: Select all
<script type="text/javascript" language="javascript">
$(document).ready(function(){
$(".QTPopup").css('display','none')
$(".lnchPopop").click(function(){
$(".QTPopup").animate({width: 'show'}, 'slow');})
$(".closeBtn").click(function(){
$(".QTPopup").css('display', 'none');
})
})
</script>
<div id="main">
<div id="leftpanel">
<a href="#" class="lnchPopop">Solutions,Services & Partnerships </a><br/><br/><br/>
</div>
<form name="form1" method="post" action="send_contact.php">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>Name</td>
<input name="Name" type="text" id="Name" style="border:0px; background:none; margin-top:5px; width:245px;"/>
</tr>
<input type="submit" name="Submit" value="Submit" >
and i have another page which is call send_contact.php
- Code: Select all
<HTML>
<HEAD>
<TITLE>New Document</TITLE>
</HEAD>
<BODY>
<?php
$Name ="$Name";
// Details
// Mail of sender
$mail_from="$Email";
// From
$header="from: $Name <$mail_from>";
// Enter your email address
$to ='abc@hotmail.com';
$send_contact=mail($to,$Name,$Position,$header);
// Check, if message sent to your email
// display message "We've recived your information"
if($send_contact){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>
</BODY>
</HTML>
But why i get this error "Notice: Undefined variable: Name in C:\xampp\htdocs\content\send_contact.php on line 9" ???
*p/s: actually i ignore another elements such as msg, email and etc. Coz these elements also have a same error msg like name.
any help is appreciated.
thank you.
regards,
Nasri

