Ver Mensaje Individual
  #6 (permalink)  
Antiguo 10/11/2008, 07:31
Avatar de tilu
tilu
 
Fecha de Ingreso: agosto-2002
Ubicación: u-l-d-m
Mensajes: 1.885
Antigüedad: 21 años, 8 meses
Puntos: 5
Respuesta: Paso de parámetros con modalbox + php

Al parecer si existe la manera correcta de como pasar parámetros en modalbox... con esto queda claro que andaba un poco perdida

Un C&P de la explicación:
Cita:
PassingFormValues
Explanation on passing form variables values to MB pages

Introduction
For example we have the following form on one MB page:
Código PHP:
<form action="yoururl.php" method="get" id="myform" onsubmit="return false"
<
fieldset
    <
label for="name">Your name</label> <input type="text" size="30" id="name" name="name" /><br /> 
    <
label for="email">Email to</label> <input type="text" size="30" id="email" name="email" /><br /> 
</
fieldset
<
input type="submit" value="Submit" onclick="Modalbox.show('yoururl.php', {title: 'Sending status', params: Form.serialize('myform') }); return false;" />
</
form
and then in youurl.php we're doing the following:
Código PHP:
<?php $name $GET['name']; $email $GET['email']; ?> 
<h1><?php echo $name ?>, your message sent!</h1>
to show the sender name.

That's all!
La fuente: http://code.google.com/p/modalbox/wi...singFormValues


Haré el intento, ojalá me resulte
__________________
"Casualidad es el juego favorito del destino", Tilu