Romanian PC Forum Sabitech Media - web design, gazduire web, promovare, seo, logo design si branding


Go Back   Romanian PC Forum > Forum General > Webmaster's Section > Script-uri Web

Script-uri Web Instalare/configurare, care e alegerea perfecta pentru tine? Totul despre Forum-uri: instalare, modificare, skin-uri...


Reply
 
Thread Tools
Old 05.01.2011, 13:48   #1
Zuzuitu'
RPC Gold Member
 
Zuzuitu''s Avatar
 
Join Date: 27.05.2009
Location: .it
Age: 28
Posts: 179
Thanks: 69
Thanked 135 Times in 78 Posts
Send a message via Yahoo to Zuzuitu'
Post [PHP] Contact Form

Ceva simplu:


contact.php

Code:
<table width="400" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td><strong>Contact Form </strong></td>
</tr>
</table>

<table width="400" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td><form name="form1" method="post" action="send.php">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td width="16%">Subject</td>
<td width="2%">:</td>
<td width="82%"><input name="subject" type="text" id="subject" size="50"></td>
</tr>
<tr>
<td>Detail</td>
<td>:</td>
<td><textarea name="detail" cols="50" rows="4" id="detail"></textarea></td>
</tr>
<tr>
<td>Name</td>
<td>:</td>
<td><input name="name" type="text" id="name" size="50"></td>
</tr>
<tr>
<td>Email</td>
<td>:</td>
<td><input name="customer_mail" type="text" id="customer_mail" size="50"></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>



send.php

Code:
<?php
// Contact subject
$subject ="$subject";
// Details
$message="$detail";

// Mail of sender
$mail_from="$customer_mail";
// From
$header="from: $name <$mail_from>";

// Enter your email address
$to ='member@rpc-forum.ro';

$send_contact=mail($to,$subject,$message,$header);

// Check, if message sent to your email
// display message "We have recived your information"
if($send_contact){
echo "We have recived your contact information";
}
else {
echo "ERROR";
}
?>


Asta-i tot, enjoy !
__________________
If you can't afford, just pirate it !
If you still like it when you can afford it in the future, buy it then. Also don't forget to feel bad
!


Daca ai nevoie de ajutorul meu, nu ezita sa ma contactezi !
Zuzuitu' is offline   Reply With Quote
The Following User Says Thank You to Zuzuitu' For This Useful Post:
kittmask (05.01.2011)
Reply

Bookmarks


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

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formular de contact kittmask Programare 20 15.11.2010 21:01

 
Advertisement




camere foto digitale

aparate foto digitale


Partner Links
Sabitech Media - dezvoltare web, servicii media

RSP Forum - sateliti.info
Comunitate Satelitara






All times are GMT +2. The time now is 14:43.


Powered by vBulletin® - © Jelsoft Enterprises Ltd.
~ Copyright © 2007-2015 Romanian PC Forum ~
Toate drepturile rezervate

Romanian Sattelites Provider Wi-Fi Magazin