Jump to content


AngelMoon

Member Since 23/01/2012
Offline Last Active 09/02/2012, 17:28
-----

Topics I've Started

Problema Com Registro De Dados Mysql + Php

08/02/2012, 19:13

esse eh o arquivo index.html , abro ele escrevo nome email dedicatoria clico enviar e nao chega nada la no meu banco de dados estou usando o wamp

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>



<body>
     <form action="grava.php" method="post" enctype="multipart/form-data" name="forml" id="forml">
    <table width="577" border="0" align="center" cellpadding="0" cellspacing="0">
  
      <tr>
        <td>Nome:</td>
      </tr>
      <tr>
        <td><form id="nome" name="nome" method="post" action="">
          <span id="nome">
          <label for="text1"></label>
          <input type="text" name="nome" id="nome" />
          <span class="textfieldRequiredMsg">A value is required.</span></span>
        </form></td>
      </tr>
      <tr>
        <td>Email:</td>
</tr>
      <tr>
        <td><form id="email" name="email" method="post" action="">
          <span id="email">
          <label for="text1"></label>
          <input type="text" name="email" id="email" />
          <span class="textfieldRequiredMsg">A value is required.</span></span>
        </form></td>
      </tr>
      <tr>
        <td>Dedicatoria:</td>
      </tr>
      <tr>
        <td><form id="dedicatoria" name="" method="post" action="">
          <span id="dedicatoriaa">
            <label for="dedicatoria"></label>
            <span id="dedicatoria">
            <label for="textarea1"></label>
            <textarea name="dedicatoria" id="dedicatoria" cols="45" rows="5"></textarea>
          <span class="textareaRequiredMsg">A value is required.</span></span>          </span>
        </form></td>
      </tr>
<tr>
        <td><form id="form4" name="form4" method="post" action="">
     
          <input type="submit" name="buttom" id="buttom" value="Enviar" />
        </form></td>
      </tr>
    </table>
  </div>
<script type="text/javascript">
var nome = new Spry.Widget.ValidationTextField("nome");
var email = new Spry.Widget.ValidationTextField("email");
var dedicatoria = new Spry.Widget.ValidationTextarea("dedicatoria");
</script>
</body>
</html>



arquivo contecta

<?php
	$host      =   "localhost";
	$login     =   "root";
	$password  =    "";
	$database  =   "clientes";
	$tabela    =   "registrar";
	$link      =    mysql_connect($host,$login,$password) or die ("erro ao tentar conectar");
	
?>



esse eh o arquivo grava

<?php include('conecta.php');?>
<?php
$nome = $_POST['nome'];
$email = $_POST['email'];
$dedicatoria = $_POST['dedicatoria'];

$query = "INSERT INTO $tabela VALUES ('NULL','$nome','$email',
'$dedicatoria')";

if(mysql_db_query($database, $query, $link)) {
print("<p class=titulo_big> A insersao foi executada com sucesso!</p>");
} else {
print("<p class=titulo_big>A consulta nao foi executada!</p>");
}
mysql_close($link);

?>


Error 2000# Nao Consigo Loadar Um Arquivo.Swf Ajuda =(

30/01/2012, 10:14


import flash.events.MouseEvent;

import flash.net.URLLoader;

import flash.net.URLRequest;



var homee : Homee = new Homee;

var pagsegurooo : Pagsegurooo = new Pagsegurooo;

var duvidass : Duvidass = new Duvidass;

var carregador : Loader = new Loader;

var arquivo : URLRequest;





btn_duvidas.addEventListener(MouseEvent.CLICK, cClick);

btn_home.addEventListener(MouseEvent.CLICK, cClick);

btn_pedidos.addEventListener(MouseEvent.CLICK, cClick);

function cClick (e:MouseEvent) : void {

	switch  (e.target.name){

	    case "btn_home" :

		trace("clicou");

		addChild(homee);

		homee.x = 510;

		homee.y = 535;

		homee.scaleY = 1.11;

		break;

		

		case "btn_pedidos" :

		trace("clicou");

		arquivo = new URLRequest("cadastro.swf");

		carregador.load(arquivo);

		break;

		

		case "btn_duvidas" :

		trace("clicou");

		addChild(duvidass);

		duvidass.x = 510;

		duvidass.y = 535;

		duvidass.scaleY = 1.04;

		break;

		

	}

	

	

}

Error 2007# Ajuda >.<

23/01/2012, 15:25

TypeError: Error #2007: O parâmetro listener não deve ser nulo.
at flash.events::EventDispatcher/addEventListener()
at registro_fla::MainTimeline/frame1()


Estou com esse erro ai em cima, alguem pode me ajudar?






import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.events.Event;
import flash.net.URLLoaderDataFormat;
import flash.text.TextField;
import flash.events.TextEvent;

var conteudo : URLLoader = new URLLoader();

nomes.addEventListener(TextEvent.LINK, this._cliquei);
conteudo.dataFormat = URLLoaderDataFormat.VARIABLES;
conteudo.load( new URLRequest("http://localhost/pesquisa.php?i=" + Math.random() * 1000));
conteudo.addEventListener(Event.COMPLETE, _mostrar);

function _mostrar(e:Event) : void {
	
	nomes.htmlText = "";
	for ( var i: Number = 0; i < conteudo.data.numTotal; i++) {
	nomes.htmlText +=  "<a href=  `event:" + i + " `>" + conteudo.data["nome"+i] + "</a><br />";
	}

function _cliquei (e:TextEvent) : void {
	 trace("cliquei");
}

}

RESOLVIDO

IPB Skin By Virteq