ايميل فرم فوري

iRWEBDES

Active Member
آقا من يه كد html لازم دارم كه فرم ايميل باشه
اگه كسي كدشو داره بده
مرسي
 

saman_sweden

Active Member
دوست عزيز فقط با كد html كارت راه نمي افته من بلدم اما وقت ميبره بنويسم
فقط كلي بگم
شما بايد php ياjava يا asp يا pl يا CGI هم براي فوروارد فايلتان داشته باشيد
در هر حال اگر بتوني من كد HTML كه ميخواهي برات مينويسم
کد:
<form name="form" method="post" action="mail.php">
<input type="text" name="recipient" size="35">

</td>
</tr>
<tr>
<td width="24%">From:</td>
<td width="76%">

<input type="text" name="sender" size="35">

</td>
</tr>
<tr>
<td width="24%">Subject:</td>
<td width="76%">

<input type="text" name="subject" size="35">

</td>
</tr>

</tr>
<tr>
<td width="24%">Message:</td>
<td width="76%">

<textarea name="message" cols="44" rows="11" wrap="VIRTUAL"></textarea>

</td>
</tr>
<tr>
<td width="24%">Send </td>
<td width="76%">
<input type="submit" name="Submit" value="Send">
<input type="reset" name="Clear" Value="Clear">
</form>

ديگر بيشتر اگر بخواهي بپرسي معذورم وفت ميبره[/code]
 

iRWEBDES

Active Member
دمت گرم آقا سامان اما اگه بيشتر كارمو راه بندازي بيشتر دمت گرم :D اونارم بده ديگه :D :arrow: :?: :wink:
 
ur code

here is an e-mail form in php
follow the instruction:
کد:
To use this script is fairly easy the only requirements are a server running php4.                            
 Installation:

	Step 1 - Go to contact.php and set the $adminemail variable to match your email address.
	Step 2 - Uploas the files contactform.php, header.php and footer.php in to inc folder to  your server.

 To modify the appearance of the contact form edit "inc/contactform.php" 
 Trouble shooting
Make sure all paths are correct use full paths if necessary.

:now code for contact.php
کد:
<? 

	include('inc/header.php');
	


	if ($REQUEST_METHOD == "POST") {
  
	$adminemail = "[email protected]";
	$msg2 = "
		Name: $name
		Email: $email
		Company: $company
		Phone: $phone
		Website: $website
		Message:$msg
	";

	mail("$adminemail", "[Contact Form]: $subject", "$msg2", "From: $email \nReply-To: $email");
	echo " Thank you We will Reply asap!";

	} else { 


	include('inc/contactform.php'); 


	}


	include('inc/footer.php'); 

?>

code for contactform.php:
کد:
<TABLE BORDER=0 cellpadding=0 cellspacing=0><TR><TD>
<SCRIPT LANGUAGE="JavaScript">
    <!-- Hide code from non-js browsers
    function validate()
    {
        formObj = document.contact;
        if ((formObj.name.value == "") ||
            (formObj.email.value  == "") ||
            (formObj.subject.value  == "") ||
            (formObj.msg.value  == "")) 
        {
            alert("You have not filled in all required fields.");
            return false;
        }
        else
            return true;
    }
    // end hiding -->
</SCRIPT>




<TABLE BORDER=0 cellpadding=0 cellspacing=0><form action=contact.php method=post name=contact onSubmit="return validate()">
<TR><TD>

<IMG SRC='i/spacer.gif' border=0 width=1 height=5px><BR>

<DIV>
1. Name *<BR>
<input type=text value='your name' size=50 maxlength=50 name=name class='txtfield'><BR>

2. Email Adress *<BR>
<input type='text' value='[email protected]' size='50' maxlength='60' name='email'><BR>

3. Company Name<BR>
<input type='text' value='your company' size='50' maxlength='50' name='company'><BR>

4. Phone Number<BR>
<input type='text' value='0045+your num' size='50' maxlength='32' name='phone'><BR>

5. Webiste<BR>
<input type='text' value='http://www.yoursite.com' size='50' maxlength='60' name='website'><BR>

6. Email to *<BR>
<select name='who'>
<option value='1'>Customer Service</option>
<option value='2'>Information</option>
<option value='3'>Technical Support</option>
</select><BR>

7. Subject *<BR>
<input type='text' value='' size='50' maxlength='60' name='subject'><BR>

8. Message *<BR>
<textarea name='msg' rows='7' cols='50'></textarea><BR>

</DIV>

<input type='submit' value='submit'>* Field Required<BR>
</TD></tR></FORM></tABLE>
</TD></TR></tABLE>
Code for header.php:
کد:
<HTML>
<HEAD>

	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<title>Contact Form 1.0</title>
	<META name="description" content="">
	<META name="keywords" content="">
	<META name="revisit-after" content="7days">
	<META name="robots" content="index, follow">

</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 rightmargin=0>
Cdoe for footer.php:
کد:
<BR>
<Div align=center><A HREF="http://mohammadramezanian.tripod.com">powered by MOR Contact Form</A></DIV>
<BR>

</BODY>
</HTML>
Have Fun With these Codes
Mohammad
 

iRWEBDES

Active Member
آقا محمد خيلي دمت گرم دادش اما من زياد php كار نكردم بلد نيست
اگه ميشه يه توضيحاتي بده
 
سلام

as i said before, u have to follow the instruction. u don't need to know any languages, what u need is just editing the contact.php file. in that file just set the $adminemail variable to match your email address ($adminemail=yourEmail.com). then put the other three files (contactform.php, header.php and footer.php) in to inc (inc is just a folder name) folder. at the end upload the contact.php and inc folder in to ur server. and call the contact.php. like yourDomain.com/contact.php.
that was all. as u can see u don't need to know any php. what u need is just a little time for spending it on reading my note.
Have Fun
 

iRWEBDES

Active Member
سلام جناب اگه كد جاوا اسكريژتشو بلدي بگو دمت خيلي گرم
من php حاليم نيست
 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

:!: :!: :!: :!: :!: :!: :!: :!: :!: :!:
والا از اين ساده تر ديگه نمي دونم چي مي خوايي. مثل هلو كد گذاشتم جلوت/ بازم مي گي حاليم نشد.
 

جدیدترین ارسال ها

بالا