Foros del Web » Programando para Internet » PHP »

Que hay de malo aqui???

Estas en el tema de Que hay de malo aqui??? en el foro de PHP en Foros del Web. Hola a todos, esto son 2 preguntas. La primera: Hay algo malo aqui??? porque siempre me da este error: Parse error: parse error, unexpected T_LNUMBER, ...
  #1 (permalink)  
Antiguo 20/12/2005, 09:14
Avatar de lrunge  
Fecha de Ingreso: agosto-2005
Ubicación: En algun lugar de Caracas
Mensajes: 165
Antigüedad: 18 años, 8 meses
Puntos: 4
Que hay de malo aqui???

Hola a todos, esto son 2 preguntas.

La primera: Hay algo malo aqui??? porque siempre me da este error: Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in E:\web\operadores\post.php on line 2
Código PHP:
<? 
$1A $_POST["1A"];
$
1B $_POST["1B"];
$
2A $_POST["2A"];
$
2B $_POST["2B"];
$
3A $_POST["3A"];
$
3B $_POST["3B"];
$
4A $_POST["4A"];
$
4B $_POST["4B"];
$
5A $_POST["5A"];
$
5B $_POST["5B"];
$
6A $_POST["6A"];
$
6B $_POST["6B"];
$
7A $_POST["7A"];
$
7B $_POST["7B"];
$
8A $_POST["8A"];
$
8B $_POST["8B"];
$
9A $_POST["9A"];
$
9B $_POST["9B"];
$
10A $_POST["10A"];
$
10B $_POST["10B"];
$
11A $_POST["11A"];
$
11B $_POST["11B"];
$
12A $_POST["12A"];
$
12B $_POST["12B"];
$
13A $_POST["13A"];
$
13B $_POST["13B"];
$
14A $_POST["14A"];
$
14B $_POST["14B"];
$
15A $_POST["15A"];
$
15B $_POST["15B"];
$
16A $_POST["16A"];
$
16B $_POST["16B"];
$
17A $_POST["17A"];
$
17B $_POST["17B"];
$
18A $_POST["18A"];
$
18B $_POST["18B"];
$
19A $_POST["19A"];
$
19B $_POST["19B"];
$
20A $_POST["20A"];
$
20B $_POST["20B"];
$
21A $_POST["21A"];
$
21B $_POST["21B"];
$
22A $_POST["22A"];
$
22B $_POST["22B"];
$
23A $_POST["23A"];
$
23B $_POST["23B"];
$
24A $_POST["24A"];
$
24B $_POST["24B"];
$
25A $_POST["25A"];
$
25B $_POST["25B"];
$
26A $_POST["26A"];
$
26B $_POST["26B"];
$
27A $_POST["27A"];
$
27B $_POST["27B"];
$
28A $_POST["28A"];
$
28B $_POST["28B"];
$
29A $_POST["29A"];
$
29B $_POST["29B"];
$
30A $_POST["30A"];
$
30B $_POST["30B"];
$
31A $_POST["31A"];
$
31B $_POST["31B"];
$
32A $_POST["32A"];
$
32B $_POST["32B"];
$
33A $_POST["33A"];
$
33B $_POST["33B"];
$
34A $_POST["34A"];
$
34B $_POST["34B"];
$
35A $_POST["35A"];
$
35B $_POST["35B"];
$
36A $_POST["36A"];
$
36B $_POST["36B"];
$
37A $_POST["37A"];
$
37B $_POST["37B"];
$
38A $_POST["38A"];
$
38B $_POST["38B"];
$
39A $_POST["39A"];
$
39B $_POST["39B"];
$
40A $_POST["40A"];
$
40B $_POST["40B"];
$
41A $_POST["41A"];
$
41B $_POST["41B"];
$
42A $_POST["42A"];
$
42B $_POST["42B"];
$
43A $_POST["43A"];
$
43B $_POST["43B"];
$
44A $_POST["44A"];
$
44B $_POST["44B"];
$
45A $_POST["45A"];
$
45B $_POST["45B"];
$
46A $_POST["46A"];
$
46B $_POST["46B"];
$
47A $_POST["47A"];
$
47B $_POST["47B"];
$
48A $_POST["48A"];
$
48B $_POST["48B"];
?>
y la segunta: hay alguna forma de hacer todo esto mas corto???

Saludos
  #2 (permalink)  
Antiguo 20/12/2005, 09:40
Avatar de Seppo  
Fecha de Ingreso: marzo-2005
Ubicación: Buenos Aires, Argentina
Mensajes: 1.284
Antigüedad: 19 años, 1 mes
Puntos: 17
Lo que dice el error es que es inválido
En http://ar2.php.net/manual/es/language.variables.php está la descripción y aclara
$4site = 'not yet'; // invalid; starts with a number

Por otro lado, para hacerlo más fácil deberías usar foreach
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 10:06.