PHP - Error en formulario, necesito ayuda!!!

 
Vista:
sin imagen de perfil

Error en formulario, necesito ayuda!!!

Publicado por Eva (3 intervenciones) el 03/04/2014 23:57:30
Hola,
Rediseñé un sitio y usé el formulario de la web anterior. Todo iba bien hasta que borré el sitio anterior. Dejé el PHP, pero al parecer algo salió mal porque ahora me marca error en la línea 165, que corresponde a $siteaddress ="http://www.medspanish.org";

La pág de registro es http://www.medspanish.org/registrationbuena.html

Les agradecré muchísimo que me ayuden porque me urge que funcione. Gracias de antemano!!!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<? echo "Name: $_POST[Name]<br>
Title: $_POST[Title]<br>
Specialty: $_POST[Specialty]<br
Address: $_POST[Address]<br>
City: $_POST[city]<br>
State: $_POST[state]<br>
Zip: $_POST[zip]<br>
Course Dates: $_POST[Coursedays]<br>
Location: $_POST[Location]<br>
Phone: $_POST[Phone]<br>
Fax: $_POST[Fax]<br>
Email: $_POST[Email]<br>
-------------------------------------------<br>
Course: $_POST[Curso]<br>
Deposit: $_POST[Deposit]<br>
Only For Total Beginner: Books/Tapes in Advance? $_POST[Advance]<br>
Any Level: $_POST[Prefer]<br>"
?>
<?
//"register@medspanish.org, tama85718@aol.com, convesp@aol.com, jferncons@aol.com, ".$_POST[Email].",
"tuttostudio@tuttostudio.com ".$_POST[Email].",
$siteaddress ="http://www.medspanish.org";
$sitename = ":::MED SPANISH:::";
$date = date("m/d/Y H:i:s");
 
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
mail("$adminaddress","Registration",
"FAO: Admin @ $sitename \n
Name: $_POST[Name]\n
Title: $_POST[Title]\n
Specialty: $_POST[Specialty]\n
Address $_POST[Address]\n
City: $_POST[city]\n
State: $_POST[state]\n
Zip: $_POST[zip]\n
Course Dates: $_POST[Coursedays]\n
Location: $_POST[Location]\n
Phone: $_POST[Phone]\n
Fax: $_POST[Fax]\n
Email: $_POST[Email]\n
-------------------------------------------
Course: $_POST[Curso]\n
Deposit: $_POST[Deposit]\n
Only for Total Beginner: Books/CDs in Advance? $_POST[Advance]\n
Any Level: $_POST[Prefer]\n
Shipping & Handling: $_POST[shipping]\n
Hotel:  $_POST[Hotel]\n
-------------------------------
Assessment Form

-------------------------------
Have you ever studied a foreign language before? $_POST[before]\n
If yes: For How Long? $_POST[long]\n
QUESTIONS \n\n
1. ¿Cómo se llama, dónde vive y cómo está Ud? 
$_POST[ans1]\n\n
2. ¿Qué va a tomar y comer mañana por la mañana? 
$_POST[ans2]\n\n
3. Describa en detalle lo que hace Ud. en su trabajo. 
$_POST[ans3]\n\n
4. ¿Qué hizo anoche? 
$_POST[ans4]\n\n
TRANSLATION\n\n
5. Lie down.  Bend your knees.   Sit up.  Stand up.   Stick out your tongue and say Ah.  Walk straight ahead.  Walk on your heels and turn around.   Close your eyes.   Hold Still.
$_POST[ans5]\n\n
6. Have you ever had heart problems or difficulty breathing?
$_POST[ans6]\n\n
7. ¿What kind of pain is it?  Is it sharp, dull, intermittent, throbbing, crushing?  Can you describe it to me? 
$_POST[ans7]\n\n
8.  ¿Qué hacía Ud. cuando le dio el último ataque de asma?  
$_POST[ans8]\n\n
9.  ¿Qué quiere que haga su paciente para controlar la diabetes/ asma / alta presión? (Escoja uno) 
$_POST[ans9]\n\n
10.  ¿Qué quería que hiciera su paciente para controlar su asma / diabetes/ alta presión? (Escoja uno.)  
$_POST[ans10]\n\n
11.  Si yo le recetara esta medicina, la tomaría? 
$_POST[ans11]\n\n
12 a.  ¿Qué haría Ud.si ganara la lotería? 
$_POST[ans12]\n\n
12 b.  Y si no gana la lotería… ¿Qué habría hecho Ud. si la hubiera ganado? 
$_POST[ans13]\n\n
Info :
------------------------------
Using: $_SERVER[HTTP_USER_AGENT]
 Hostname: $ip
IP address: $_SERVER[REMOTE_ADDR]
Date/Time:  $date","FROM:register@medspanish.org");
?>
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
sin imagen de perfil

Error en formulario, necesito ayuda!!!

Publicado por Eva (3 intervenciones) el 04/04/2014 01:54:35
Ya encontré el error! Gracias
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de xve
Val: 3.943
Oro
Ha mantenido su posición en PHP (en relación al último mes)
Gráfica de PHP

Error en formulario, necesito ayuda!!!

Publicado por xve (6935 intervenciones) el 04/04/2014 09:03:49
Hola Eva gracias por comentarlo... que era?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Error en formulario, necesito ayuda!!!

Publicado por Eva (3 intervenciones) el 01/10/2014 02:04:05
Le borré todo esto:
, ".$_POST[Email].

Creo que ya quedó...
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar