Radio button

1 resposta
littlejuh

Tô com um problema no login dessa página, são dois sistemas de login, porém um redireciona para a header_post e nada acontece, o outro loga normalmente, alguém pode ajudar ??
esse é o header:

SkyTeam Consolidadora - Aviação, Passagens Aéreas, Emissão de Bilhetes

esse o header_post:

<?php

///////////////////////////////////////////////////

// A Encryption/Decryption CLASS with Rijndael 128

// By Ismet Ozalp

// 16.03.2005

// <a href="mailto:[email removido]">[email removido]</a>

// Please Do not remove this header

///////////////////////////////////////////////////

class pWord {

var $mykey = w3btr4v3lzzzxxxc;

function getEncryptedPass($len){

$pass = $this->makeRandomPassword($len);

return $this->linencrypt($pass);

}

function linencrypt($pass) {

//$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB); //get vector size on ECB mode

//$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); //Creating the vector

//$iv=“w3btr4v3lzzzxxxc”;

$cryptedpass = mcrypt_encrypt (MCRYPT_RIJNDAEL_128, $this->mykey, $pass, MCRYPT_MODE_ECB, $this->mykey); //Encrypting using MCRYPT_RIJNDAEL_128 algorithm

return $cryptedpass;

}
function lindecrypt($enpass) {

//$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_ECB);

//$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);

$decryptedpass = mcrypt_decrypt (MCRYPT_RIJNDAEL_128, $this->mykey, $enpass, MCRYPT_MODE_ECB, $this->mykey); //Decrypting…

return rtrim($decryptedpass);

}

function makeRandomPassword($len) {

$salt = “ABCDEFGHJKLMNPRSTUVWXYZ0123456789abchefghjkmnpqrstuvwxyz”;

srand((double)microtime()*1000000);

for($i = 0;$i < $len;$i++) {

$num = rand() % 59;

$tmp = substr($salt, $num, 1);

$pass = $pass . $tmp;

}

return $pass;

}

}
$pWord = new pWord();

$key1=base64_encode($pWord->linencrypt($_POST[key1]));

$key2=base64_encode($pWord->linencrypt($_POST[key2]));

?>

Aguarde...

e essa a função do js:

function changeForm(radio){

if (radio==webtravel){

document.getElementById(loginfield).name = key1;

document.getElementById(passfield).name = key2;

document.getElementById(esqueci-wooba).style.display = none;

document.getElementById(esqueci-wts).style.display = block;

}

if (radio==wooba){

document.getElementById(loginfield).name = WoobaLogin;

document.getElementById(passfield).name = WoobaSenha;

document.getElementById(esqueci-wts).style.display = none;

document.getElementById(esqueci-wooba).style.display = block;

}

if (radio==benner){

document.getElementById(loginfield).name = pu;

document.getElementById(passfield).name = pp;

document.getElementById(esqueci-wts).style.display = none;

document.getElementById(esqueci-wooba).style.display = none;

}

document.getElementById(loginfield).style.background = “#FFFFFF ;

document.getElementById(passfield).style.background = “#FFFFFF ;

}

function enviaForm(){

var login = document.getElementById(‘loginfield’).value;
var pass = document.getElementById(‘passfield’).value;

var radio = “”;

for( i = 0; i < document.form1.portal.length; i++ ){

if( document.form1.portal[i].checked == true )

radio = document.form1.portal[i].value;

}
if(login === “”){

alert(Você deve digitar um usuário!);

document.getElementById(loginfield).style.background = “#FFD5D6 ;

document.getElementById(loginfield).focus();

return;

}

if(pass === “”){

alert(Você deve digitar uma senha!);

document.getElementById(passfield).style.background = “#FFD5D6 ;

document.getElementById(passfield).focus();

return;

}
if (radio==‘webtravel’){

document.getElementById(‘form1’).method = ‘post’;

document.getElementById(‘form1’).action = ‘header_post.php’;

document.getElementById(‘form1’).submit();

}

if (radio==‘wooba’){

document.getElementById(‘form1’).method = ‘get’;

<a href="//document.getElementById">//document.getElementById</a>(‘form1’).action = '<a href="http://200.201.201.203/skyteam/agencias/guiautenticador.aspx?WoobaLogin='+login+'&WoobaSenha='+pass;">http://200.201.201.203/skyteam/agencias/guiautenticador.aspx?WoobaLogin=’+login+’&WoobaSenha=’+pass;</a>

<a href="//document.getElementById">//document.getElementById</a>(‘form1’).action = '<a href="http://www.e-skyteam.tur.br/guiautenticador.aspx?WoobaLogin='+login+'&WoobaSenha='+pass;">http://www.e-skyteam.tur.br/guiautenticador.aspx?WoobaLogin=’+login+’&WoobaSenha=’+pass;</a>

document.getElementById(‘form1’).action = '<a href="http://www.e-skyteam.tur.br/?portal=wooba&WoobaLogin='+login+'&WoobaSenha='+pass;">http://www.e-skyteam.tur.br/?portal=wooba&WoobaLogin=’+login+’&WoobaSenha=’+pass;</a>

document.getElementById(‘form1’).submit();

}

if (radio==‘benner’){

<a href="//document.getElementById">//document.getElementById</a>(‘form1’).method = ‘post’;

document.getElementById(‘form1’).method = ‘get’;

<a href="//document.getElementById">//document.getElementById</a>(‘form1’).action = <a href="http://bskyteam.corpflex.com.br/Turismo1/authentication.aspx?cmd=login">http://bskyteam.corpflex.com.br/Turismo1/authentication.aspx?cmd=login</a>’;

document.getElementById(‘form1’).action = '<a href="http://bskyteam.corpflex.com.br/Turismo/login.aspx?pu='+login+'&pp='+pass;">http://bskyteam.corpflex.com.br/Turismo/login.aspx?pu=’+login+’&pp=’+pass;</a>

document.getElementById(‘form1’).submit();
}

}

O que pode estar acontecendo? :frowning:

o site é esse: www.skyteam.tur.br

1 Resposta

InicianteJavaHenriqu

Verifique se você não esqueceu de fachar alguma tag.

:thumbup:

Criado 25 de maio de 2012
Ultima resposta 26 de mai. de 2012
Respostas 1
Participantes 2