Ir para conteúdo
Fórum Script Brasil

ApocalipsX

Membros
  • Total de itens

    5
  • Registro em

  • Última visita

Sobre ApocalipsX

ApocalipsX's Achievements

0

Reputação

  1. Olá, fiz algo em XMLHttpRequest e ficou assim: <script language="javascript"> var xmlhttp = getXmlHttpRequest(); function getXmlHttpRequest() { if (window.XMLHttpRequest) { return new XMLHttpRequest(); } else if (window.ActiveXObject) { return new ActiveXObject("Microsoft.XMLHTTP"); } } function alteraURL(url){ document.getElementById("carregando").innerHTML = "<img src='carregando.gif'>"; xmlhttp.open("POST", url, true); xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState==4){ document.getElementById("urlContent").innerHTML = xmlhttp.responseText; document.getElementById("carregando").innerHTML = ""; } } xmlhttp.send(null); } </script> Agora tenho a index.php e como eu faço pra quando eu clicar em contato.php de esse ajax de carregando? Seria como esse http://www.robertoborsatti.com.br/ Obrigado
  2. Olá pessoal, estou usando um script pra cadastras clientes, mas a senha não cadastra, só o nome,sobrenome,email e sexo, aqui o script: Cadastro.php: <body> <form id="form1" name="form1" method="post" action="salvar.php"> <h2 align="center" class="style2">Sistema de Cadastro PHP/MYSQL </h2> <table width="390" border="1" align="center" cellpadding="1" cellspacing="1"> <tr> <td width="165"><span class="style1">Nome</span></td> <td width="209"><input name="nome" type="text" id="nome" /></td> </tr> <tr> <td><span class="style1">Sobrenome</span></td> <td><input name="sobrenome" type="text" id="sobrenome" /></td> </tr> <tr> <td><span class="style1">Email<br /> Senha</span></td> <td><input name="email" type="text" id="email" /> <input name="senha" type="password" id="senha" /></td> </tr> <tr> <td><span class="style1">Sexo</span></td> <td><input name="sexo" type="radio" value="M" checked="checked" /> Masculino <input name="sexo" type="radio" value="F" /> Feminino </td> </tr> <tr> <td>&nbsp;</td> <td><input type="submit" name="Submit" value="Gravar" style="cursor:pointer"/></td> </tr> </table> </form> </body> </html> <?php @ini_set('display_errors', '1'); error_reporting(E_ALL); $nome = $_POST["nome"]; $sobrenome = $_POST["sobrenome"]; $email = $_POST["email"]; $sexo = $_POST["sexo"]; $senha = $_POST["senha"]; mysql_connect("localhost", "root", ""); mysql_select_db("cadastro"); mysql_query("INSERT INTO tabela ( id_tabela , nome , sobrenome , email , sexo, senha ) VALUES ( NULL , '$nome', '$sobrenome', '$email', '$sexo', $senha')"); mysql_close(); echo "Salvo com sucesso<br />"; ?> <a href="index.html">Voltar</a> vlw pessoal
  3. Boa tarde pessoal Estou pensando em fazer uma página de login, ai quando o usuario fizesse o login ia ter uma div em ajax de Carregando e ia para a página administrativa, alguém me da uma idéia de como fazer? Obrigado
  4. Tenho um gerador de html(livros),ele gerada todo o codigo html a ser postado. Mas ao invés dess codigo todo fosse gerado apenas <div align='center'> <table border='0' cellpadding='0' cellspacing='0' id='table1'> <tr> <td><iframe src='meuforum.com/gerador/html/softwares-linux.php?id=4' marginwidth=0 marginheight=0 width=499 name=down scrolling=no border=0 frameborder=0 height=628> </iframe></td> </tr> </table> </div> que seria um iframe 'meuforum.com/gerador/html/softwares-linux.php?id=4' entendeu?
  5. Opa pessoal tudo bem? Fiz um gerador de posta normal,tem a index.php e o gerador.php Depois do codigo gerador ele gera assim: <br> <table width="1%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><div align="center"><img src="http://i131.photobucket.com/albums/p297/livrosbrasil/topo_capa_peq.gif" width="122" height="21"></div> </td> </tr> <tr> <td background="http://i131.photobucket.com/albums/p297/livrosbrasil/lado3.gif"><div align="center"> <table width="82%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src='http://' width='108' height='105'></td> </tr> </table> </div> </td> </tr> <tr> <td background="http://i131.photobucket.com/albums/p297/livrosbrasil/lado3.gif"><div align="center"><strong><font color=#006600 size=1><font color="#3585AF" face="Verdana, Arial, Helvetica, sans-serif">Por</font></font><font color=#3585AF size=1><font face="Verdana, Arial, Helvetica, sans-serif">: </font></font></strong> <table width="92%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><div align="center"><font color=#006600 size=1></font><font color=#000000><strong><font color="#FF0000"> </font><font color=#000000><strong><font color="#FF0000"></font></strong></font> <font color="#FF0000">| </font><font color=#000000><strong><font color="#FF0000">Livrosbrasil.org</font></strong></font></strong></font></div> </td> </tr> </table> </div> </td> </tr> <tr> <td height="20" background="http://i131.photobucket.com/albums/p297/livrosbrasil/fim3.gif"> </td> </tr> </table> <br> Teria como gravar pelo gerador que depois que fosse gerado o codigo fosse gerado um codigo com a id e o iframe tipo assim: <div align='center'> <table border='0' cellpadding='0' cellspacing='0' id='table1'> <tr> <td><iframe src='meuforum.com/gerador/html/softwares-linux.php?id=4' marginwidth=0 marginheight=0 width=499 name=down scrolling=no border=0 frameborder=0 height=628> </iframe></td> </tr> </table> </div> não sei se fui bem claro,mas posso dexa mais explicado vlw
×
×
  • Criar Novo...