Hi, I'm new to the forum and new to the php world.

My boss asked me if I could add a Mail feature to our Contact page (coded in HTML)

He gave me the FTP connection, I downloaded the "public_html" folder and found my first problem... I don't know which IDE I should open the project with (I usually use Eclipse for my Java projects).

1- What IDE should I use? I downloaded Dreamweaver but I don't know if that's the right one.

So I started looking at the code, and as of now it looks like this (CONTACT.HTML):

<div id="contactform">
<form id="contact" action="js/process.php" method="post">
<div class="one_half firstcols">
<label for="name" id="name_label">Name <span class="required">(required)</span></label>
<input type="text" name="name" id="name" value="" class="text-input" size="40" />

<div class="one_half lastcols">
<label for="email" id="email_label">E-mail <span class="required">(required)</span></label>
<input type="text" name="email" id="email" value="" class="text-input" size="40" />

<div class="one_half firstcols">
<label for="website" id="website_label">Sitio Web</label>
<input type="text" name="website" id="website" value="" class="text-input" size="40" />

<div class="one_half lastcols">
<label for="subject" id="subject_label">Subject</label>
<input type="text" name="subject" id="subject" value="" class="text-input" size="40" />

<div class="clear"></div>

<label for="msg" id="msg_label">Message <span class="required">(required)</span></label>
<textarea cols="60" rows="15" name="msg" id="msg" ></textarea> <br class="clear" />
<input type="submit" name="submit" class="butcontact" id="submit_btn" value="Enviar"/>
<br class="clear" />
<span class="error" id="name_error">Please input your name !</span>
<span class="error" id="email_error">Please input your mail !</span>
<span class="error" id="email_error2">Please use a valid !</span>
<span class="error" id="msg_error">Por Favor completa tu mensaje !</span>

And this is js/process.php:


/* Recovering params */

$name = $_POST["name"];
$mail= $_POST["email"];
$site = $_POST["website"];
$message = $_POST["msg"];
$subject = $_POST["subject"];

/* Define destination */

$destination = "jgarrido@opticomsa.com.ar";

/* Define message */

$body = "<strong>Name: </strong>".$name."<br />
<strong>Mail: </strong>".$mail."<br />
<strong>Web Site: </strong>".$site."<br />
<strong>Subject: </strong>".$subject."<br />
<strong>Message: </strong>".$message;

/* Define header */

$header= "MIME-Version: 1.0\r\n";
$header .= "Content-type:text/html; charset=iso-8859-1\r\n";
$header .= "From: ".$mail."\r\n";
$header .= "Reply-to: ".$mail."\r\n";
$header .= "Cc: ".$mail."\r\n";

/* Sending E-Mail */

if(mail($destination, $subject, $body, $header)) {
echo 'Your message has been sent';
else {
echo 'Please try again';


2- This does absolutely nothing. What should I change to make it work?