PHP - (super) Novato en PHP

 
Vista:

(super) Novato en PHP

Publicado por Marcko (1 intervención) el 03/11/2006 09:28:47
Tengo un problema con un php, nunca habia usado php, hasta ahora que me lo pidieron.
Kiciera sabes porke me falla, aki esta el script, o bien si alguien puede corregruirlo y ayudarme.

... Es cierto el hay que insatlar un programa en en el servidor? o corre solo.

se supone ke el server si soporta php, por alli no puede ser (segun el problema)

<?php

' .Here . ' and make your correction.'; if (!($email)){ echo "
We feel sorry but you wrote anything on the E-mail text field.
$url

**********".$email; } else { if (!($name)){ echo "
We feel sorry but you wrote anything on the Name text field.
$url

**********".$name; } else { if (!($lastname)){ echo "
We feel sorry but you wrote anything on the Last name text field.
$url

"; } else { if (!($adress)){ echo "
We feel sorry but you wrote anything on the Adress text field.
$url

"; } else { if (!($city)){ echo "
We feel sorry but you wrote anything on the City text field.
$url

"; } else { if (!($text)){ echo "
We feel sorry but you wrote anything on the Your need / Comment text field.
$url

"; } else { //validacion de E-mail function valid_email($email) { // check an email address is possibly valid if (ereg('^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$', $email)) return true; else return false; } if (valid_email($email)== false){ echo "

We lamented it, this direction of electronic mail is not been worth.
"; echo "

Address nonbeen worth: $email

"; echo "

Try again verifies that the direction of electronic mail is been worth.
$url

"; } else { $date= date('j/n/y'); //mailfunction $addres= '[email protected]';'' mail($addres,"Mega Storage Sheds", "Nombre: ".$name." Apellido:".$lastname." Dirección: ".$adress." Ciudad: ".$city." Mensaje escrito: ".$text."","FROM:".$email.""); printf (""); printf(" Usted ha enviado un formulario de contacto
"); printf ("Muy pronto le responderemos In a moment we will respond to him
"); printf (" E mail enviado desde www.megastoragesheds.com "); echo "usted ha enviado" ..$addres,"Mega Storage Sheds", "Nombre: ".$name." Apellido:".$lastname." Dirección: ".$adress." Ciudad: ".$city." Mensaje escrito: ".$text."","FROM:".$email.""; echo " "; exit; } } } } } } }

?>


1º Kiero saber si esta mal el script, porke no envia ningun correo. y pues mi jefe ya me esta hostigando mucho con esto.

2º Sera que subi el sript e un lugar dnd no era? Lo subi en una carpeta dnd tengo toda la pagina, y ademas esta en el mismo lugar dnd esta el htm de esta misma pagina.

3º Direccion de la pagina para ver si el problema es el html http://megastoragesheds.com/megastoragesheds/contact.htm

4º Despues de llenar el formulario no me manda a ninguna parte.

5º No se nada de PHP kiciera saber si puede ayudarme sin terminos tecnicos del lenguaje.

Gracias.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder