Jump to content

contact.php for spanish speaking people?


eduard

Recommended Posts

What do I've to translate of my contact.php for spanish speaking people (

www.eduardlid.net)?

(I' ve tried to make a start!)

<?php

/* Set e-mail recipient */

$myemail = "eduard.lid@gmail.com";

/* Check all form inputs using check_input function */

$yourname = check_input($_POST['Su nombre y apellido'], "Ingresa su nombre y apellido por favor");

$email = check_input($_POST['email']);

$website = check_input($_POST['website']);

$comments = check_input($_POST['comments'], "Write your comments");

/* If e-mail is not valid show error message */

if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+gresa)/", $email))

{

show_error("E-mail address not valid");

}

/* If URL is not valid set $website to empty */

if (!preg_match("/^(https?:\/\/+[\w\-]+\.[\w\-]+)/i", $website))

{

$website = '';

}

/* Let's prepare the message for the e-mail */

$message = "Hello!

Your contact form has been submitted by:

Name: $yourname

E-mail: $email

URL: $website

Link to comment
Share on other sites

Anything that the user is going to read. Words like "Name" and E-mail", anything you're displaying on the page. Variable names and code don't need to change.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...