lunes, 4 de febrero de 2013

Ejercicio: Propuesta_04.php


<?php
/*
Author:Andrea
Date: 04/02/2013
Nombre del Fichero: Propuesta04.php
Descripción: Calificaciones
*/
?>
<html>
<head>
<title>Puntuación media</title>
<body bgcolor="pink"><font face="verdana"> <font size="+1">
<p>
<?php

 extract($_REQUEST);
if ( ! isset ($enviar )) { 
  exit;
  }
  
?>
<table border="1" cellpadding="10"><tr bgcolor="pink">
<?php
 $nota=($nota1+$nota2+$nota3)/3;
  if ($nota > 0 && $nota < 30) {
    $Resultado = "D";
print "<td><b> Su nota final es la $Resultado.</td>";
  }
  elseif ($nota >=31 && $nota < 50 ){
    $Resultado = "C";
print "<td><b>Su nota final es la $Resultado.</td>";
  }
  elseif ($nota >=51 && $nota <=70 ){
    $Resultado = "B";
print "<td><b>Su nota final es la $Resultado.</td>";
  }
  elseif ($nota =71 && $nota <=100 ){
    $Resultado = "A";
    print "<td><b>Su nota final es la $Resultado.</td>";
  }
 ?>
</tr>
</table>
</font>
</body>
</html>

Ejercicio: Propuesta_04.html


<?php
/*
Author:Andrea
Date: 04/02/2013
Nombre del Fichero: propuesta04.HTML
Descripción: Calificaciones
*/
?>
<html>
<head>
<title>Calificaciones</title>
<body bgcolor="pink"><font face="verdana"> <font size="+1">
<form method="GET"  action="propuesto04.php">
</head>
<body>
<p> Nota Test 1<br>
<input type="text" size=1 name="nota1" <br /> 
<p> Nota Test 2<br>
<input type="text" size=1 name="nota2" <br /> 
<p> Nota Test 3<br>
<input type="text" size=1 name="nota3" <br /> 
<br>
<br>
<input type=submit name="enviar" value="Calcular media" <br />
</body>
</html>

jueves, 31 de enero de 2013

Ejercicio: Propuesta_03.php


<html lang="es">

<head>
   <title>Tabla de multiplicar</title>
   
</head>

<body>

<h1>Tabla de multiplicar</h1>

<?php

  $n = 1;
  for ($n=1; $n<=10; $n++){
  print ("<P>La tabla de multiplicar del $n es:</p>\n");
  for ($i=1; $i<=10; $i++)
     print ("$n x $i = " . $n*$i . "<BR>\n");
}
?>

Ejercicio: Tabla Multiplicar.php


<html lang="es">

<head>
   <title>Tabla de multiplicar</title>
   
</head>

<body>

<h1>Tabla de multiplicar</h1>

<?php

  $n = 5;
  print ("<P>La tabla de multiplicar del $n es:</p>/n");
  for ($i=1; $i<=10; $i++)
     print ("$n x $i = " . $n*$i . "<BR>/n");
 
?>

Ejercicio: eje7.6.php


<?php
/*
Author:Andrea
Date: 31/01/2013
Nombre del Fichero: El bucle While
Descripción: Tarifa de precios
*/
?>
<html>
<head>
<title>Constructores de bucles</title>
<body bgcolor="lightblue">
<h3>El Bucle For</h3>
<font face='arial' size='+1'>
<?php

  for( $i = 0; $i < 10; $i++ ){
    echo "$i ";
  }
  
?>

Ejercicio: eje7.5.php


<?php
/*
Author:Andrea
Date: 31/01/2013
Nombre del Fichero: El bucle While
Descripción: Tarifa de precios
*/
?>
<html>
<head>
<title>Constructores de bucles</title>
</head>
<body bgcolor='f0f8ff'>
<font face=arial size='+1'>
<?php

  $i=10;
  do{
       echo "$i ";
  $i--;
  }while ($i > 0 );
  
?>
</font>
</body>
</html>

Ejercicio: eje7.4.php


<?php
/*
Author:Andrea
Date: 31/01/2013
Nombre del Fichero: El bucle While
Descripción: Tarifa de precios
*/
?>
<html>
<body>
<h3>El Bucle While</h3>
<font face=arial size='+1'>
<?php

    $i=0; //Iniciando contado de bucle
while ($i <= 10 ) { //Condicion
   echo "$i ";
$i++; //Decrementa el contador
} // Fin del loop


?>
<font size="+3" color="red">
...Fuegoooo!!
</font>
</body></html>

Ejercicio: Propuesta_02.php


<?php
/*
Author:Andrea
Date: 31/01/2013
Nombre del Fichero: propuesta02.php
Descripción: Tarifa de precios
*/
?>
<html>
<head>
<title>Su tarifa</title>
<body bgcolor="violet"><font face="arial"> <font size="+1">

<p>
<?php


  
?>
<table border="1" cellpadding="10"><tr bgcolor="pink">
<?php
$edad =26;
switch ( $edad ) {
  case ($edad >= 0 && $edad <= 13):
print "<td><b>Ud. paga $edad € tarifa de niños!</td>";
  break;
 case ($edad >13 && $edad < 55 ):
print "<td><b>Ud. paga $edad € tarifa normal de adulto.</td>";
  break;
  case ($edad >55 && $edad <120 ):
print "<td><b>Ud. paga $edad € tarifa para mayores.</td>";
  break;  
  default:
    print "<td><b>Ud. no es humano.</td>";
  break;
 }
 ?>
</tr>
</table>
</font>
</body>
</html>

Ejercicio: Propuesta_02.html


<?php
/*
Author:Andrea
Date: 31/01/2013
Nombre del Fichero: propuesta02.html
Descripción: Tarifa de precios
*/
?>
<html>
<head>
<title>Tarifa de precios</title>
<body bgcolor="violet"><font face="arial black"> <font size="+1">
<form method="GET"  action="propuesta02.php">
</head>
<body>
<p> ¿Qué edad tienes?<br>
<input type="text" size=1 name="edad" <br /> 
<br>
<br>
<input type=submit name="enviar" value="Obtener tarifa" <br />
</body>
</html>

martes, 29 de enero de 2013

Ejercicio: eje7.3.php


<?php
/*
Autor: Andrea Rubio
Date: 25/01/2013
Descripcion: Color
Nombre de fichero: ejer7.3.php
Ultima modificacion:
*/
?>
<html>
<html><head><title>Font Color</title></head>
<body bgcolor="lightgreen">
<font face="arial" size="+1">

<?php
extract($_REQUEST);
if (! isset ($submit_color)){
exit;
}
?>

<table border="2" cellpadding="10">
<tr bgcolor="white">

<?php

switch ( $color ) {
case "red":
print "<td><b><font color=".$color.">La fuente es de color roja</td>";
break;
case "blue":
print "<td><b><font color=".$color.">La fuente es de color azul</td>";
break;
case "purple":
print "<td><b><font color=".$color."> La fuente es de color purpura</td>";
break;
case "green":
print "<td><b><font color=".$color."> La fuente es de color verde</td>";
break;
default:
print "<td><b><font color=".'black'."> La fuente es negra</td>";
break;
}

?>
</tr>
</table>

Ejercicio: eje7.3.html


<?php
/*
Autor: Andrea Rubio Mesa
Date: 25/01/2013
Descripcion: Formulario Operadores logicos
Nombre de fichero: ejer7.3.html
Ultima modificacion:
*/
?>

<html>
<head>
<title>Pink a Font color</title>
</head>
<body bgcolor="9BCD93">
<font face="arial" >
<b>
<form method="get" action="ejer7.3.php">
<br />Choose a font color:
<br /><input type="radio" name="color" value="red" checked="checked"/> rojo
<br /><input type="radio" name="color" value="blue"/> azul
<br /><input type="radio" name="color" value="purple"/> purpura
<br /><input type="radio" name="color" value="green"/> verde
<p>
<input type="submit" name="submit_color" value="enviar color" />
</form>
</b>
</body>
</html>

lunes, 28 de enero de 2013

Ejercicio: eje7.2.php


<?php
/*
Author:Andrea
Date: 28/01/2013
Nombre del Fichero: 7.2 php
Descripción: Tarifa de precios
*/
?>
<html>
<head>
<title>Su tarifa</title>
<body bgcolor="violet"><font face="arial"> <font size="+1">

<p>
<?php

 extract($_REQUEST);
if ( ! isset ($enviar )) { // Get form input
  exit;
  }
  
?>
<table border="1" cellpadding="10"><tr bgcolor="pink">
<?php
  if ($edad > 0 && $edad < 13) {
    $price = 5.00;
print "<td><b>Ud. paga $price € tarifa de niños!</td>";
  }
  elseif ($edad >=13 && $edad < 55 ){
    $price = 8.25;
print "<td><b>Ud. paga $price € tarifa normal de adulto.</td>";
  }
  elseif ($edad >=55 && $edad <=120 ){
    $price = 10.00;
print "<td><b>Ud. paga $price € tarifa para mayores.</td>";
  }
  else {
    print "<td><b>Ud. no es humano.</td>";
  }
 ?>
</tr>
</table>
</font>
</body>
</html>

Ejercicio: eje7.2.html


<?php
/*
Author:Andrea
Date: 28/01/2013
Nombre del Fichero: 7.2 HTML
Descripción: Tarifa de precios
*/
?>
<html>
<head>
<title>Tarifa de precios</title>
<body bgcolor="violet"><font face="arial black"> <font size="+1">
<form method="GET"  action="ex7.2.php">
</head>
<body>
<p> ¿Qué edad tienes?<br>
<input type="text" size=1 name="edad" <br /> 
<br>
<br>
<input type=submit name="enviar" value="Obtener tarifa" <br />
</body>
</html>

Ejercicio: eje.7.1.php


<?php
/*
Author:Andrea
Nombre del Fichero: 7.1 php
Descripción: Tarifa de precios
*/
?>
<html>
<head>
<title>Tarifa de precios</title>
<body bgcolor="violet"><font face="arial"> <font size="+1">


<p>
<?php

 extract($_REQUEST);
if ( ! isset ($enviar )) { // Condicional Simple
  exit;
  }
  
?>
<table border="1" cellpadding="10"><tr bgcolor="white">
<?php

 if ($edad >= 55){
    $price = 8.25;
print "<td><b>Su pago es de $price €, tarifa para mayores!</td>";
  }
   else{
    $price = 10.00;
print "<td><b>Su pago es de $price €, tarifa regular.</td>";
}

?>

Ejercicio: eje7.1.html


<html>
<head>
<title>Tarifa de precios</title>
<body bgcolor="violet"><font face="arial black"> <font size="+1">
<form action= "http://localhost/Andrea/ex7.php" />
</head>
<body>
<p> ¿Qué edad tienes?
<input type="text" size=1 name="edad" <br /> 
<br>
<br>
<input type=submit name="enviar" value="Obtener tarifa" <br />
</body>
<body>

viernes, 25 de enero de 2013

Ejercicio: eje5.10.php


<?php
/*
   Autor: Andrea Rubio
   Date: 25/01/2012
   Description: Formulario
   Nombre de fichero: eje5.10.php
   Ultima actualización:
*/
?>
<?php
    extract ($_REQUEST); //Obtenido del formulario de entrada
// ig($age > 12 and $age < 20 and $age != "" )
if ( $age > 12 && $age < 20){
print "Eyyy $name, eres un tio duro, amigo!<br>";
}
if($age > 20 && $age < 99 ){
print "Eyyy $name, eres un tio Maaaduro, amigo!<br>";
}
?>
<img src="conoce amigos.jpg"  border="1" width="200" height="150">
</body>
</html>

Ejercicio: eje5.10.html


<?php
/*
   Autor: Andrea Rubio
   Date: 25/01/2012
   Description: Formulario
   Nombre de fichero: eje5.10.html
   Ultima actualización:
*/
?>
<html><title>Operadores lógicos</title>
</head>
<body bgcolor=violet> <font face="verdana" size="+1">
<form action="eje5.10.php">
<p> Hola amigo, ¿Cual es tu nombre?
<input type="text" size=25 name="name" />
<p>
Dime tu edad
<input type="text" size=5 name="age" />
<p>
<input type=submit value="Enviaselo">
</form>
</body>
</html>

Ejercicio: eje5.9.php


<?php
/*
   Autor: Andrea Rubio
   Date: 25/01/2012
   Description: Comparando strings
   Nombre de fichero: eje5.9.php
   Ultima actualización:
*/
?>
<html><head><title>Comparando Strings</html></head></title>
<body bgcolor=violet>
<font face="verdana" size="+1">
<?php
    $fruta1 = "pera";
$fruta2 = "perA";
if($fruta1 > $fruta2) {print "Verdadero: pera es mayor que
perA.<br />";}
?>
</body>
</html>

Ejercicio: eje5.7.php


<?php
/*
   Autor: Andrea Rubio
   Date: 25/01/2012
   Description: Concatenacion
   Nombre de fichero: eje5.7.php
   Ultima actualización:
*/
?>
<html><head><title>Concatenacion</html></head></title>
<body bgcolor=violet>
<font face="verdana" size="+1">
<?php
    $string1 = "mi perro";
$string2 = "tiene pulgas";
//$string1.=$string2
$string3 = $string1 . $string2 . "<br />";
echo " Primer string: $string1<br  />";
echo " Segundo string: $string2<br />";
echo "Despues de la concatenacion $string3";
echo "Uppppppps!! Añadimos espacio: "."<br  />";
$string3 = "$string1". " " ."$string2";
echo "Despues de añadido el espacio: $string3";
?>
</body>
</html>

Ejercicio: 5.6.php


<?php
/*
   Autor: Andrea Rubio
   Date: 25/01/2012
   Description: Type casting o converciones de tipos
   Nombre de fichero: eje5.6.php
   Ultima actualización:
*/
?>
<html><head><title>Conversiones de Tipos (Type Casting)</html></head></title>
<body bgcolor="aqua">
<font face="verdana" size="+1">
<?php
    $string = "500 perros";
$number = (int) $string;
echo "El valor de \String ha sido convertido a entero;
", $number, "<br>";

?>

<hr>
<?php
    $total_seconds = 1132; //tiempo de la carrera en segundos
$minutes =(int) ($total_seconds / 60); /*resultado de la expresion is cast to an integer */
    $seconds_left = $total_seconds % 60; //retorna el modulo
//second left
print "Ud ha corrido durante $minutes minutos y $seconds_left 
segundos\n.";
?>
<hr>

</body>
</html>

miércoles, 23 de enero de 2013

Ejercicio: Propuesta_01


<html>
<head><title>Calcula</title>
<h2>Calculadora virtual</h2>
</head>
<body bgcolor="violet">
<font face="comic sans" size="+1">
Multiplicar:<br>
<form action="http://localhost/AndreitaRubio/Tareas/calculomultiplicar.php" method="POST">
<input type="text" size=1 name="Numero1"> <br>
<input type="text" size=1 name="Numero2"> <br>
<input type=submit value="=">
</form>
Sumar:<br>
<form action="http://localhost/AndreitaRubio/Tareas/calculosumar.php" method="POST">
<input type="text" size=1 name="a"> <br>
  <input type="text" size=1 name="b"> <br>
<input type=submit value="=">
</form>
Restar:<br>
<form action="http://localhost/AndreitaRubio/Tareas/calculoresta.php" method="POST">
<input type="text" size=1 name="Numero1"> <br>
  <input type="text" size=1 name="Numero2"> <br>
<input type=submit value="=">
</form>
Dividir:<br>
<form action="http://localhost/AndreitaRubio/Tareas/calculodividir.php" method="POST">
<input type="text" size=1 name="Numero1"> <br>
  <input type="text" size=1 name="Numero2"> <br>
<input type=submit value="=">
</form>
</body>
</html>

Ejercicio: Inicio cálculo de áreas.


<html>
<head><title>INICIO</title></head>
<body bgcolor="lightblue">
<font face="comic sans" size="+1">
Calcular el área del cuadrado<br>
<form action="http://localhost/AndreitaRubio/Tareas/cuadrado.html" method="POST">
<input type=submit value="IR">
</form>
Calcular el área del rectangulo<br>
<form action="http://localhost/AndreitaRubio/Tareas/rectangulo.html" method="POST">
<input type=submit value="IR">
</form>
Calcular el área del triangulo<br>
<form action="http://localhost/AndreitaRubio/Tareas/triangulo.html" method="POST">
<input type=submit value="IR">
</form>
Calcular el área del circulo<br>
<form action="http://localhost/AndreitaRubio/Tareas/circulo.html" method="POST">
<input type=submit value="IR">
</form>
</body>
</html>

miércoles, 2 de enero de 2013

Ejercicio: Calcular área de un círculo.

HTML:


<?php
/*
Author: Andrea Rubio Mesa
Date: 02/01/2013
Descripcion: Área del circulo en HTML.                           
Ultima modificacion: 
*/
?>
<html>
<head><title>Area del circulo</title></head>
<body bgcolor="lightpink">
<font size="+1">
<form action="http://localhost/AndreitaRubio/Tareas/circulo.php" method="POST">
Introduzca el valor del radio del circulo: <br>
  <input type="text" size=2 name="radio"> <br>


    <input type=submit value="Resolver">
 </form>
 <br>
 </body>
 </html>


PHP:

<?php
/*
Author: Andrea Rubio Mesa
Date: 02/01/2013
Descripcion:  Área del circulo en PHP.                    
Ultima modificacion: 
*/
?>
<html>
<head><title>Área del circulo</title></head>
<body bgcolor="pink" text="000033">
<h2>Resultado: Área del circulo</h2>
<p>
<?php
 extract($_REQUEST, EXTR_SKIP); //Extrayendo los imputs del formulario
 $result = 3.14 *($radio * $radio);
 print "$result";
?>
</body>
</html> 

Ejercicio: Calcular área de un triángulo.


HTML:

<?php
/*
Author: Andrea Rubio Mesa
Date: 02/01/2013
Descripcion: Área del triángulo en HTML.                           
Ultima modificacion: 
*/
?>
<html>
<head><title>Area del triángulo</title></head>
<body bgcolor="lightpink">
<font size="+1">
<form action="http://localhost/AndreitaRubio/Tareas/triangulo.php" method="POST">
Introduzca el valor de la base del triángulo: <br>
  <input type="text" size=2 name="base"> <br>
Introduzca el valor de la altura del triángulo: <br>
  <input type="text" size=2 name="altura"> <br> 

    <input type=submit value="Resolver">
 </form>
 <br>
 </body>
 </html>

PHP:


<?php
/*
Author: Andrea Rubio Mesa
Date: 02/01/2013
Descripcion:  Área del triángulo en PHP.                    
Ultima modificacion: 
*/
?>
<html>
<head><title>Área del triangulo</title></head>
<body bgcolor="pink" text="000033">
<h2>Resultado: Área del triangulo</h2>
<p>
<?php
 extract($_REQUEST, EXTR_SKIP); //Extrayendo los imputs del formulario

 $result = ($base * $altura) /2;
 print "$result = ($base * $altura )/2 <br>";
?>
</body>
</html> 

Ejercicio: Calcular área de un rectángulo.


HTML:

<?php
/*
Author: Andrea Rubio Mesa
Date: 02/01/2013
Descripcion: Área del rectángulo en HTML.                           
Ultima modificacion: 
*/
?>
<html>
<head><title>Area del Rectángulo</title></head>
<body bgcolor="lightpink">
<font size="+1">
<form action="http://localhost/AndreitaRubio/Tareas/rectangulo.php" method="POST">
Introduzca el valor de la base del rectangulo: <br>
  <input type="text" size=2 name="base"> <br>
Introduzca el valor de la altura del rectangulo: <br>
  <input type="text" size=2 name="altura"> <br> 

    <input type=submit value="Resolver">
 </form>
 <br>
 </body>
 </html>

PHP:


<?php
/*
Author: Andrea Rubio Mesa
Date: 02/01/2013
Descripcion:  Area del rectangulo en PHP.                    
Ultima modificacion: 
*/
?>
<html>
<head><title>Área del rectangulo</title></head>
<body bgcolor="pink" text="000033">
<h2>Resultado: Área del rectangulo</h2>
<p>
<?php
 extract($_REQUEST, EXTR_SKIP); //Extrayendo los imputs del formulario

 $result = $base * $altura;
 print "$result = $base * $altura <br>";
?>
</body>
</html> 

Ejercicio: Calcular área de un cuadrado.


EN HTML:


<?php
/*
Author: Andrea Rubio Mesa
Date: 02/01/2013
Descripcion: Área del cuadrado en HTML.                           
Ultima modificacion: 
*/
?>
<html>
<head><title>Area del Cuadrado</title></head>
<body bgcolor="lightpink">
<font size="+1">
<form action="http://localhost/AndreitaRubio/Tareas/cuadrado.php" method="POST">
Introduzca el valor de el lado del cuadrado: <br>
  <input type="text" size=2 name="lado_A"> <br>

    <input type=submit value="Resolver">
 </form>
 <br>
 </body>
 </html>




EN PHP:


<?php
/*
Author: Andrea Rubio Mesa
Date: 02/01/2013
Descripcion:  Area del cuadrado en PHP.                    
Ultima modificacion: 
*/
?>
<html>
<head><title>Área del cuadrado</title></head>
<body bgcolor="pink" text="000033">
<h2>Resultado: Área del cuadrado</h2>
<p>
<?php
 extract($_REQUEST, EXTR_SKIP); //Extrayendo los imputs del formulario

 $result = $lado_A * $lado_A;
 print "$result = $lado_A * $lado_A <br>";
?>
</body>
</html> 


Ejercicio 5.4.php


<?php
/*
Author: Andrea Rubio Mesa
Date: 02/01/2013
Descripcion: Operadores Aritmeticos PARTE II                           
Ultima modificacion: 
*/
?>
<html>
<head><title>Operadores Aritmeticos</title></head>
<body bgcolor="#99ff66">
<h2>Shortcut Operadores</h2>
<font size="+1">
<?php
  //Usando Shortcuts
   $num=10;
  Print "10 es asignado a \$num. <br>";
  
  $num += 2;
  Print "\$num += 2; \$num es $num <br>";
  
  $num -= 1;
  Print "\$num -= 1; \$num es $num <br>";
  
  $num *= 3;
  Print "\$num *= 3; \$num es $num <br>";
?>
</body>
</html>   
  

Ejercicio 5.3.php


<?php
/*
Author: Andrea Rubio Mesa
Date: 02/01/2013
Descripcion:                            
Ultima modificacion: 
*/
?>
<html>
<head><title>Operadores Aritmeticos</title></head>
<body bgcolor="#ccccff" text="000033">
<h2>Operadores Aritmeticos</h2>
<p>
<?php
 $num1 = 5;
 $num2 = 7;
 $result = $num1 + $num2;
 print "<h3>$result = $num1 + $num2 <br>";
 $result = $result + (10/2 + 5) /2;
 print "$result = 12 + (10 / 2 + 5) /2 <br></h3>";
?>
</body>
</html> 

Ejercicio 5.2.php


<?php
/*
Author: Andrea Rubio Mesa
Date: 02/01/2013
Descripcion: Uso parentesis y asociatividad Parte I           
Ultima modificacion: 
*/
?>
<html>
<head><title>Parentesis y Asociatividad</title>
</head>
<body bgcolor="lightgreen">
<font face="arial" size='+1'>
<?php
 $resultado =5 + 4 * 12 / 4;
  print "$resultado = 5 + 4 + 12 / 4";
 $result = (5 + 4) * (12 / 4);
 print "<br>$result = (5 + 4)* (12 / 4)  ";
 ?>
</body>
</html>

Ejercicio 5.1.php


<?php
/*
Author: Andrea Rubio Mesa
Date: 02/01/2013
Descripcion: Uso parentesis y asociatividad Parte I           
Ultima modificacion: 
*/
?>
<html>
<head><title>Parentesis y Asociatividad</title>
</head>
<body bgcolor="lightgreen">
<font face="arial" size="+1">
<?php
 $resultado =5 + 4 * 12 / 4;
 print "$resultado = 5 + 4 + 12 / 4";
 $result = (5 + 4) * 12 / (4 - 2);
 print "<br>$result = (5 + 4) * 12 / (4 - 2) ";
 ?>
</body>
</html>

Apuntes : Expresiones Y Operadores


◊ Expresiones Y Operadores:

• Operadores Aritméticos:
+,-,*,/,%,++;--

• Operadores de Asignación:
=

• Operadores combinados: =, += , etc.
$a = 3; $a +=5; → a vale 8
$b = “hola”; $b = “mundo”; → b vale “ Hola mundo”
→ Equivale a $b = $b . “mundo”;

• Operadores de comparación:
==,|=,<,>,<=,>= y otros.

 Operador de control de error: @: Antepuesto a una expresión, evita cualquier mensaje de error que pueda ser generado por la expresión.

• Operadores Lógicos:
And (&&),or (ll),l,xor
And/&& y or/ll tienen diferentes prioridades.

• Operadores de cadena:
Concatenación . ( Punto )
Asignación con concatenación: .=

• Precedencia de operadores (de mayor a menor):
++;--
*,/,%
+,-
<; <= , >, >=
==, !=
&&
||
And
or

Ejercicio 4.24.php


<?php
/*
Author: Andrea Rubio Mesa
Date: 02/01/2013
Descripcion: Uso de los formularios simples con el metodo POST
               es llamado desde 4.23.html            
Ultima modificacion: 
*/
?>
<html>
<head><title>Processing First Form</title>
</head>
<body bgcolor="lightgreen"><font size="+1">
<h2>Estos son los resultados de la consulta:</h2>
<?php
 extract($_REQUEST, EXTR_SKIP); //Extrayendo los imputs del formulario
 print "Bienvenido al site ET Crea-Tic $tu_nombre<br>"; //Registro global
 print "Puedo llamarte al $tu_telefono<br>";
print "Te enviare un correo a $tu_email<br>";
?>
</body>
</html>