Foros del Web » Programando para Internet » PHP »

Formulario con dos casillas de destino

Estas en el tema de Formulario con dos casillas de destino en el foro de PHP en Foros del Web. A quien me pueda dar una mano, tengo el siguiente script que trabaja com mi formulario en flash y necesito que me llegue a dos ...
  #1 (permalink)  
Antiguo 16/07/2005, 16:25
csa
 
Fecha de Ingreso: febrero-2004
Mensajes: 1
Antigüedad: 20 años, 2 meses
Puntos: 0
Formulario con dos casillas de destino

A quien me pueda dar una mano, tengo el siguiente script que trabaja com mi formulario en flash y necesito que me llegue a dos casillas de correo al mismo tiempo, he probado de mil formas pero no he podido dar en la tecla. mis conocimientos en php son bastante limitados sepan disculpar mi ignorancia , desde ya muchisimas gracias al alma caritativa que pueda asesorarme.


<?

/************************************************** ****
**
** PHP Mailer 2.0
**
** This script is easy to configure. Just change the variables below to
** suit your environment and PHP does the rest!
**
** http://www.bigjolt.com
**
************************************************** *****/

/************************************************** *****

Enter your site details below!

************************************************** *****/

// Enter your contact email address here
$adminaddress = "[email protected]";

// Enter the address of your website here include http://www.
$siteaddress ="http://www.your.site";

// Enter your company name or site name here
$sitename = "Your Site Name";

/************************************************** *****

No need to change anything below ...

************************************************** *****/

// Gets the date and time from your server
$date = date("m/d/Y H:i:s");

// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
if ($action != ""):
mail("$adminaddress","Info Request",
"A visitor at $sitename has left the following information\n
First Name: $fname
Last Name: $lname
Email: $email
Company: $cname
Telephone: $telno\n
The visitor commented:
------------------------------
$comments

Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");

//This sends a confirmation to your visitor
mail("$email","Thank You for visiting $sitename",
"Hi $fname,\n
Thank you for your interest in $sitename!\n
Cheers,
$sitename
$siteaddress","FROM:$adminaddress");

//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Thank you for visiting <a href = \"$siteaddress\" target = \"_blank\"><u>$sitename</u></a>. You will receive a confirmation email shortly. ";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";

endif;

?>







-----------------------------------------------------------------------------

El codigo en el frame del Flash es el siguiente:





fscommand ("allowscale", "false");
//
// set some variables
//
mailform = "mailform.php";
confirm = "please wait for confirmation ..."
action = "send";
//
// and focus on variable fname
//
Selection.setFocus("fname");
//
// validate email function
//
function validate (address) {
if (address.length>=7) {
if (address.indexOf("@")>0) {
if ((address.indexOf("@")+2)<address.lastIndexOf(".") ) {
if (address.lastIndexOf(".")<(address.length-2)) {
return (true);
}
}
}
}
return (false);
}
//
//form check
//
function formcheck () {
if ((((email == null)) || (email.length<1)) || (email == "ERROR! Address not valid")) {
email = "ERROR! Address not valid";
action = "";
}
if (!validate(email)) {
email = "ERROR! Address not valid";
action = "";
}
if (fname == null) {
fname = "ERROR! Name required";
action = "";
}
if (lname == null) {
lname = "ERROR! Name required";
action = "";
}
if ((validate(email)) && (email != "ERROR!") && (fname != "") && (lname != "")) {
action = "send";
loadVariablesNum (mailform, 0, "POST");
gotoAndPlay ("wait");
}
}
stop ();
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 20:58.