Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Preentered Emial sender, mail and mail body

Preentered Emial sender, mail and mail body

Reply
  #1 (permalink)  
Old
New Member
 
Join Date: Feb 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Preentered Emial sender, mail and mail body

Hello,

I try to do next. I want to give few options for my visitors on my website. And i want to create a few contact forms and just to add few send button on website, And when visitor chose one option I will recive email with just that answer. I dont need his email or similar.

I try to use this conatct form

Code:
<?
$subject="from ".$_GET['your_name'];
$headers= "From: ".$_GET['your_email']."\n";
 $headers.='Content-type: text/html; charset=iso-8859-1';
mail("email@domain.tld", $subject,  "
<html>
<head>
 <title>Kontakt</title>
</head>
<body>

<br>
  ".$_GET['message']."
</body>
</html>" , $headers);
echo ("Msg sent!");
?>
<script>

And change this: 
	resizeTo(300, 300)
	//window.close()
</script>
On site I put just this:

<!-- form start -->
<form action="contact.php" method="get">
<br /><br /><input type="image" class="ContactFormSubmit" src="images/send.png" onClick="submit();">
</form>
<!-- form end -->

And chage this .$GET . with some details like get mesege .$_GET['your_email']. some@mail.com or .$_GET['message']. to vote for option 3. But it not work.

Any help how to do this easyest posible
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail authentication sujata_ghosh Perl 9 06-24-08 12:45 AM
mail sender 'uNKnown' Script Requests 6 07-12-07 05:43 AM
Attachement help needed sujata_ghosh Perl 18 06-22-07 01:00 PM
file attachment problem on email script sujata_ghosh Perl 2 01-11-07 01:17 AM
mail() sender address gorrilla PHP 4 10-25-04 07:26 AM


All times are GMT -5. The time now is 05:02 PM.
vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.