Rafael Marinho Postado Abril 21, 2008 Denunciar Share Postado Abril 21, 2008 <?php require_once('autentica.php'); ?><?php require_once('../Connections/conecta.php'); ?><?if($acao == 'alterar'){ mysql_select_db($database_conecta, $conecta); $consulta = mysql_query("select * from $admsessao where codigo = '$cod'"); $mostra = mysql_fetch_assoc($consulta); $consulta_estados = mysql_query("select * from tb_estados"); $mostra_estados = mysql_fetch_assoc($consulta_estados);}?><style type="text/css"><!--body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px;}--></style><link href="bordas.css" rel="stylesheet" type="text/css"><style type="text/css"><!--.style1 { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000;}.input {font-family: Verdana; font-size: 5px; color:#00000; background:#FFFFFF; border-right:1px solid #000000; border-left:1px solid #000000; border-top:1px solid #000000; border-bottom:1px solid #000000;}.style2 {font-weight: bold}--></style><script LANGUAGE="JavaScript"><!--var isNN = (navigator.appName.indexOf("Netscape")!=-1);function autoTab(input,len, e) {var keyCode = (isNN) ? e.which : e.keyCode; var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];if(input.value.length >= len && !containsElement(filter,keyCode)) {input.value = input.value.slice(0, len);input.form[(getIndex(input)+1) % input.form.length].focus();}function containsElement(arr, ele) {var found = false, index = 0;while(!found && index < arr.length)if(arr[index] == ele)found = true;elseindex++;return found;}function getIndex(input) {var index = -1, i = 0, found = false;while (i < input.form.length && index == -1)if (input.form[i] == input)index = i;else i++;return index;}return true;}// End -->//--></script><title>Loja de Automoveis</title><body background="imagens/need-for-speed-prostreet-pro-street-screenshots-gallery-pictures-nfs-images_1.jpg" text="#000000" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF"><table width="780" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#000000"> <tr align="left" valign="top"> <th height="84" colspan="2" scope="col"><table width="100%" height="81" border="0" align="center" cellpadding="1" cellspacing="1"> <tr> <td valign="bottom"><div align="center"><font size="4" face="verdana"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="780" height="150"> <param name="movie" value="topo.swf"> <param name="quality" value="high"> <embed src="topo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="780" height="150"></embed> </object> </font></div></td> </tr> </table> </th> </tr> <tr> <td width="189" height="510" align="center" valign="top"> <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1"> <tr> <td height="251" align="center" valign="middle"> <?php include("menu.php"); ?> </td> </tr> </table> </td> <td width="593" valign="top"> <div align="right"><font size="2" face="verdana"><a href="logout.php">Sair</a></font> </div> <table width="100%" border="1" cellpadding="0" cellspacing="6" bordercolor="#FFFFFF"> <tr> <td><font color="#FFFFFF"><strong>»</strong></font><strong><font color="#FFFFFF" face="trebuchet MS"> Adicionar </font></strong><font color="#FFFFFF" face="trebuchet MS"><strong>Funcionario</strong></font></td> </tr> </table> <table width="100%" height="555" border="0" cellpadding="0" cellspacing="2"> <tr> <td height="551" valign="top"><table width="100%" border="0" cellspacing="5" cellpadding="0"> <tr> <th scope="col"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th scope="col"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <th class="texto_geral" scope="col"> <script language="javascript"> bIs_html = true; bsig_added = false; function addsig() { if(bsig_added) return; with(document.composeForm) { if(cksig.checked) { if(bIs_html) { cur = GetHtml() SetHtml(cur+'<br><br>--<br>'+sig.value); } else body.value += '\r\n\r\n--\r\n'+sig.value; } cksig.disabled = true; bsig_added = true; } } function teste(){ var pagina; document.composeForm.texto.value = Composition.document.body.innerHTML; } function upwin(rem) { mywin = 'upload.php'; if (rem != null) mywin += '?rem='+rem+'&sid={3d2a2ccbcdb9e-3d2a2ccbd29bb-1026174155}'; else mywin += '?sid={3d2a2ccbcdb9e-3d2a2ccbd29bb-1026174155}&lid=0'; window.open(mywin,'Upload','width=300,height=50,scrollbars=0,menubar=0,status=0'); } function doupload() { if(bIs_html) document.composeForm.body.value = GetHtml(); document.composeForm.tipo.value = 'edit'; document.composeForm.submit(); } function textmode() { with(document.composeForm) { if(bIs_html) body.value = GetText(); textmode.value = 1; tipo.value = 'edit'; submit(); } } function enviar() { error_msg = new Array(); frm = document.composeForm; check_mail(frm.to.value); check_mail(frm.cc.value); check_mail(frm.bcc.value); errors = error_msg.length; if(frm.to.value == '' && frm.cc.value == '' && frm.bcc.value == '') alert('É necessário especificar pelo menos um destinatário'); else if (errors > 0) { if (errors == 1) errmsg = 'O seguinte email não aparenta ser válido\r\r'; else errmsg = 'Os seguintes emails não aparentam ser válidos\r\r'; for(i=0;i<errors;i++) errmsg += error_msg[i]+'\r'; if (errors == 1) errmsg += '\rVerifique-o antes de enviar a mensagems'; else errmsg += '\rVerifique-os antes de enviar a mensagem'; alert(errmsg) } else { if(bIs_html) frm.body.value = GetHtml(); frm.tipo.value = 'send'; frm.submit(); } } function newmsg() { location = 'newmsg.php?pag=1&folder=inbox&sid={3d2a2ccbcdb9e-3d2a2ccbd29bb-1026174155}&lid=0'; } function folderlist() { location = 'folders.php?folder=inbox&sid={3d2a2ccbcdb9e-3d2a2ccbd29bb-1026174155}&lid=0'} function goend() { location = 'logout.php?sid={3d2a2ccbcdb9e-3d2a2ccbd29bb-1026174155}&lid=0'; } function goinbox() { location = 'msglist.php?folder=inbox&sid={3d2a2ccbcdb9e-3d2a2ccbd29bb-1026174155}&lid=0'; } function emptytrash() { location = 'folders.php?empty=trash&folder=inbox&goback=true&sid={3d2a2ccbcdb9e-3d2a2ccbd29bb-1026174155}&lid=0';} function search() { location = 'search.php?folder=inbox&sid={3d2a2ccbcdb9e-3d2a2ccbd29bb-1026174155}&lid=0';} function addrpopup() { mywin = window.open('quick_address.php?sid={3d2a2ccbcdb9e-3d2a2ccbd29bb-1026174155}&lid=0','AddressBook','width=480,height=250,top=200,left=200'); } function addresses() { location = 'addressbook.php?sid={3d2a2ccbcdb9e-3d2a2ccbd29bb-1026174155}&lid=0'; } function prefs() { location = 'preferences.php?sid={3d2a2ccbcdb9e-3d2a2ccbd29bb-1026174155}&lid=0'; } function AddAddress(strType,strAddress) { obj = eval('document.composeForm.'+strType); if(obj.value == '') obj.value = strAddress else obj.value = obj.value + ', ' + strAddress } function swapMode() { var eb = document.all.editbar._editor; eb.swapModes();} </script> <style> .input {font-family: Verdana; font-size: 10px; color:#00000; background:#FFFFFF; border-right:1px solid #000000; border-left:1px solid #000000; border-top:1px solid #000000; border-bottom:1px solid #000000;} a {text-decoration:none; font-family: verdana; font-size: 11px; color: #1C5679; } a:hover {text-decoration:underline; font-family: verdana; font-size: 11px; color: #1C5679; }</style> <?// include "conexao.php"; $dirfotos='http://www.ondaclick.com.br/funcionarios/'; $back = "ffffff"; $pasta_img = "../funcionarios"; if($cod!="") { $select = mysql_query("select * from funcionarios where codigo = $cod"); $result = mysql_fetch_array($select); $select_estados = mysql_query("select * from tb_estados ORDER BY estado"); $result_estados = mysql_fetch_array($select_estados); $data = explode("-", $result['data']); $data = "$data[2]/$data[1]/$data[0]"; }?> <div id="hiddenCompose" style="position: absolute; left: 3; top: -100; visibility: visible; z-index: 3"> <form name="hiddencomposeForm" action="cad_funcionarios.php" method="POST"> <textarea name="hiddencomposeFormTextArea"><? echo $mostra[texto]; ?></textarea> </form> </div> <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"> <tr> <td colspan="3" align="center"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td valign="top" width="1"> </td> <td valign="top" width="100%" align="center"> <table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" bgcolor=#<?=$back?>> <tr> <form name=composeForm method=post onsubmit="return teste()" action="<? echo $acao; ?>.php?admsessao=<? echo $admsessao; ?>&cod=<? echo $cod; ?>&destino=<? echo $destino; ?>"> <input type=hidden name=texto value=> <!-- --> <td bgcolor=white valign=top> <table width="100%" border=0 cellspacing=1 cellpadding=0 bgcolor="#<?=$back?>"> <tr> <td class="default"> </td> <td class="default"> <!-- available only for IE5+ users --> <script language="JavaScript"> bLoad=false pureText=true bodyTag=bodyTag="<BODY MONOSPACE STYLE=\"font:10pt arial,sans-serif\">" bTextMode=false public_description=new Editor /***************************** Power Editor class member function: SetHtml GetHtml SetText GetText GetCompFocus() *****************************/ function Editor() { this.put_html=SetHtml; this.get_html=GetHtml; this.put_text=SetText; this.get_text=GetText; this.CompFocus=GetCompFocus; } function GetCompFocus() { Composition.focus(); } function GetText() { return Composition.document.body.innerText; } function SetText(text) { text = text.replace(/\n/g, "<br>") Composition.document.body.innerHTML=text; } function GetHtml() { if (bTextMode) return Composition.document.body.innerText; else { cleanHtml(); cleanHtml(); return Composition.document.body.innerHTML; } } function SetHtml(sVal) { if (bTextMode) Composition.document.body.innerText=sVal; else Composition.document.body.innerHTML=sVal; } //End of Editor Class /*********************************************** Initialize everything when the document is ready ***********************************************/ var YInitialized = false; function document.onreadystatechange(){ if (YInitialized) return; YInitialized = true; var i, s, curr; // Find all the toolbars and initialize them. for (i=0; i<document.body.all.length; i++) { curr=document.body.all[i]; if (curr.className == "Btn" && !InitBtn(curr)) alert("Toolbar: " + curr.id + " failed to initialize. Status: false"); } Composition.document.designMode="On" SetHtml(hiddencomposeForm.hiddencomposeFormTextArea.value); } /*********************************************** Initialize a button ontop of toolbar ***********************************************/ function InitBtn(btn) { btn.onmouseover = BtnMouseOver; btn.onmouseout = BtnMouseOut; btn.onmousedown = BtnMouseDown; btn.onmouseup = BtnMouseUp; btn.ondragstart = YCancelEvent; btn.onselectstart = YCancelEvent; btn.onselect = YCancelEvent; btn.YUSERONCLICK = btn.onclick; btn.onclick = YCancelEvent; btn.YINITIALIZED = true; return true; } // Hander that simply cancels an event function YCancelEvent() { event.returnValue=false; event.cancelBubble=true; return false; } // Toolbar button onmouseover handler function BtnMouseOver() { if (event.srcElement.tagName != "IMG") return false; var image = event.srcElement; var element = image.parentElement; // Change button look based on current state of image.- we don't actually have chaned image // could be commented but don't remove for future extension if (image.className == "Ico") element.className = "BtnMouseOverUp"; else if (image.className == "IcoDown") element.className = "BtnMouseOverDown"; event.cancelBubble = true; } // Toolbar button onmouseout handler function BtnMouseOut() { if (event.srcElement.tagName != "IMG") { event.cancelBubble = true; return false; } var image = event.srcElement; var element = image.parentElement; yRaisedElement = null; element.className = "Btn"; image.className = "Ico"; event.cancelBubble = true; } // Toolbar button onmousedown handler function BtnMouseDown() { if (event.srcElement.tagName != "IMG") { event.cancelBubble = true; event.returnValue=false; return false; } var image = event.srcElement; var element = image.parentElement; element.className = "BtnMouseOverDown"; image.className = "IcoDown"; event.cancelBubble = true; event.returnValue=false; return false; } // Toolbar button onmouseup handler function BtnMouseUp() { if (event.srcElement.tagName != "IMG") { event.cancelBubble = true; return false; } var image = event.srcElement; var element = image.parentElement; if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()"); element.className = "BtnMouseOverUp"; image.className = "Ico"; event.cancelBubble = true; return false; } // Check if toolbar is being used when in text mode function validateMode() { if (! bTextMode) return true; alert('Por favor desmarque a opção "Ver código HTML" para usar a barra de ferramentas'); Composition.focus(); return false; } function sendHtml(){ if(bTextMode){ document.composeForm.body.value = public_description.get_text(); return true; } else{ document.composeForm.body.value = public_description.get_html(); return true; } } //Formats text in composition. function formatC(what,opt) { if (!validateMode()) return; if (opt=="removeFormat") { what=opt; opt=null; } if (opt==null) Composition.document.execCommand(what); else Composition.document.execCommand(what,"",opt); pureText = false; Composition.focus(); } //Switches between text and html mode. function setMode(newMode) { bTextMode = newMode; var cont; if (bTextMode) { cleanHtml(); cleanHtml(); cont=Composition.document.body.innerHTML; Composition.document.body.innerText=cont; } else { cont=Composition.document.body.innerText; Composition.document.body.innerHTML=cont; } Composition.focus(); } //Finds and returns an element. function getEl(sTag,start) { while ((start!=null) && (start.tagName!=sTag)) start = start.parentElement; return start; } function createLink() { if (!validateMode()) return; var isA = getEl("A",Composition.document.selection.createRange().parentElement()); var str=prompt("Digite a URL:", isA ? isA.href : "http:\/\/"); if ((str!=null) && (str!="http://")) { if (Composition.document.selection.type=="None") { var sel=Composition.document.selection.createRange(); sel.pasteHTML("<A TARGET=_blank HREF=\""+str+"\">"+str+"</A> "); sel.select(); } else formatC("CreateLink",str); } else Composition.focus(); } //Sets the text color. function foreColor() { if (! validateMode()) return; var arr = showModalDialog("/ym/ColorSelect?3", "", "font-family:Verdana; font-size:12; dialogWidth:30em; dialogHeight:35em"); if (arr != null) formatC('forecolor', arr); else Composition.focus(); } //Sets the background color. function backColor() { if (!validateMode()) return; var arr = showModalDialog("/ym/ColorSelect?3", "", "font-family:Verdana; font-size:12; dialogWidth:30em; dialogHeight:35em"); if (arr != null) formatC('backcolor', arr); else Composition.focus() } function cleanHtml() { var fonts = Composition.document.body.all.tags("FONT"); var curr; for (var i = fonts.length - 1; i >= 0; i--) { curr = fonts[i]; if (curr.style.backgroundColor == "#ffffff") curr.outerHTML = curr.innerHTML; } } function getPureHtml() { var str = ""; var paras = Composition.document.body.all.tags("P"); if (paras.length > 0) { for (var i=paras.length-1; i >= 0; i--) str = paras[i].innerHTML + "\n" + str; } else { str = Composition.document.body.innerHTML; } return str; } </script> <table width="100%" border="0" cellpadding="3" cellspacing="0" bordercolorlight="#BFBFBF" bgcolor="#<?=$back?>"> <tr> <td><div align="right"> <table width="100%" border="1" cellpadding="0" cellspacing="6" bordercolor="#FFFFFF" bgcolor="#EFEFEF"> <tr> <td><font color="#666666" size="2" face="trebuchet MS"><strong>» Dados Cadatrais:</strong></font></td> </tr> </table> <table width="100%" border="1" align="center" cellpadding="0" cellspacing="3" bordercolor="#FFFFFF" bgcolor="#F4F4F4"> <tr> <td width="23%"><strong><font color="#000000" size="2">Nome Completo:</font></strong></td> <td width="77%"><input name="nome" type="text" class="caixas_form" id="nome" value="<? if($acao == 'alterar'){ echo $mostra[nome]; } else { echo ''; } ?>" size="40"></td> </tr> </table> <table width="100%" border="1" cellpadding="0" cellspacing="3" bordercolor="#FFFFFF" bgcolor="#F4F4F4"> <tr> <td width="9%" height="23" valign="middle"><strong><font size="2">CPF:</font></strong></td> <td width="32%"><input name="cpf" type="text" class="caixas_form" id="cpf" value="<? if($acao == 'alterar'){ echo $mostra[cpf]; } else { echo ''; } ?>" size="15" maxlength="10"></td> <td width="8%" valign="middle"><strong><font size="2">R.G:</font></strong></td> <td width="51%" valign="middle"> <input name="rg" type="text" class="caixas_form" id="rg" value="<? if($acao == 'alterar'){ echo $mostra[rg]; } else { echo ''; } ?>" size="15" maxlength="10"> </td> </tr> </table> <table width="100%" border="1" cellpadding="0" cellspacing="3" bordercolor="#FFFFFF" bgcolor="#F4F4F4"> <tr> <td width="25%"><strong><font size="2">Data de Nascimento:</font></strong></td> <td width="29%"><input name="data" type="text" class="caixas_form" id="data" value="<? if($acao == 'alterar'){ echo $mostra[data]; } else { echo ''; } ?>" size="10" maxlength="10"> <font color="#0000CC" size="-2">(dd-mm-aaaa)<strong> <input name="tipo" type="hidden" id="tipo" value="<? echo $tipo;?>" /> </strong></font></td> <td width="8%"><font size="2"><strong>Sexo:</strong></font></td> <td width="38%"><font size="2"> <strong><font color="#666666"> <input type="radio" name="sexo" value="masculino"> Masculino</font></strong> <strong><font color="#666666"> <input type="radio" name="sexo" value="feminino"> Feminino</font></strong> </font> </td> </tr> </table> <table width="100%" border="1" cellpadding="0" cellspacing="6" bordercolor="#FFFFFF" bgcolor="#EFEFEF"> <tr> <td><font color="#666666" size="2" face="trebuchet MS"><strong>» Dados para Contato:</strong></font></td> </tr> </table> <table width="100%" border="1" cellpadding="0" cellspacing="3" bordercolor="#FFFFFF" bgcolor="#F4F4F4"> <tr> <td width="12%" valign="middle"><strong><font size="2">Cidade:</font></strong></td> <td width="26%"><input name="cidade" type="text" class="caixas_form" id="cidade" value="<? if($acao == 'alterar'){ echo $mostra[cidade]; } else { echo ''; } ?>" size="15" maxlength="10"></td> <td width="10%" valign="middle"><strong><font size="2">Bairro:</font></strong></td> <td width="22%" valign="middle"> <input name="bairro" type="text" class="caixas_form" id="bairro" value="<? if($acao == 'alterar'){ echo $mostra[bairro]; } else { echo ''; } ?>" size="15" maxlength="10"> </td> <td width="9%" valign="middle"><font size="2"><strong>Cep:</strong></font></td> <td width="21%" valign="middle"><input name="cep" type="text" class="caixas_form" id="cep" value="<? if($acao == 'alterar'){ echo $mostra[cep]; } else { echo ''; } ?>" size="15" maxlength="10"></td> </tr> </table> <table width="100%" border="1" cellpadding="0" cellspacing="3" bordercolor="#FFFFFF" bgcolor="#F4F4F4"> <tr> <td width="21%" height="23" valign="middle"><strong><font size="2">Complemento:</font></strong></td> <td width="25%"><input name="complemento" type="text" class="caixas_form" id="complemento" value="<? if($acao == 'alterar'){ echo $mostra[complemento]; } else { echo ''; } ?>" size="15" maxlength="10"></td> <td width="9%" valign="middle"><strong><font size="2">Estado:</font></strong></td> <td width="45%" valign="middle"><font color="#666666" size="2" face="trebuchet MS"> <select name="estado_user" id="estado_user" > <option value="0"> << Selecione o estado >></option> <?while($array = mysql_fetch_array($consulta_estados)) {?> <option value="<?echo $array['id_estado'];?>"><?echo $array['estado'];?></option> <?}?> </select> </font></td> </tr> </table> <table width="100%" border="1" cellpadding="0" cellspacing="3" bordercolor="#FFFFFF" bgcolor="#F4F4F4"> <tr> <td width="24%" height="23" valign="middle"><strong><font size="2">Fone Residencial :</font></strong></td> <td width="22%"><input name="fone_residencial" type="text" class="caixas_form" id="fone_residencial" value="<? if($acao == 'alterar'){ echo $mostra[fone_residencial]; } else { echo ''; } ?>" size="15" maxlength="10"></td> <td width="19%" valign="middle"><strong><font size="2">Fone Celular :</font></strong></td> <td width="35%" valign="middle"><input name="fone_celular" type="text" class="caixas_form" id="fone_celular" value="<? if($acao == 'alterar'){ echo $mostra[fone_celular]; } else { echo ''; } ?>" size="15" maxlength="10"> </td> </tr> </table> <table width="100%" border="1" cellpadding="0" cellspacing="3" bordercolor="#FFFFFF" bgcolor="#F4F4F4"> <tr> <td width="9%" height="23" valign="middle"><strong><font size="2">Email :</font></strong></td> <td width="91%"><input name="email" type="text" class="caixas_form" id="email" value="<? if($acao == 'alterar'){ echo $mostra[email]; } else { echo ''; } ?>" size="25" maxlength="50"></td> </tr> </table> <table width="100%" border="1" cellpadding="0" cellspacing="6" bordercolor="#FFFFFF" bgcolor="#EFEFEF"> <tr> <td><font color="#666666" size="2" face="trebuchet MS"><strong>» Dados para Profissionais:</strong></font></td> </tr> </table> <table width="100%" border="1" align="center" cellpadding="0" cellspacing="3" bordercolor="#FFFFFF" bgcolor="#F4F4F4"> <tr> <td width="19%"><strong><font color="#000000" size="2">Departamento:</font></strong></td> <td width="81%"><input name="dept" type="text" class="caixas_form" id="dept" value="<? if($acao == 'alterar'){ echo $mostra[nome]; } else { echo ''; } ?>" size="40"></td> </tr> </table> <table width="100%" border="1" align="center" cellpadding="0" cellspacing="3" bordercolor="#FFFFFF" bgcolor="#F4F4F4"> <tr> <td width="19%"><strong><font color="#000000" size="2">Função:</font></strong></td> <td width="81%"><input name="funcao" type="text" class="caixas_form" id="funcao" value="<? if($acao == 'alterar'){ echo $mostra[nome]; } else { echo ''; } ?>" size="40"></td> </tr> </table> <table width="100%" border="1" align="center" cellpadding="0" cellspacing="3" bordercolor="#FFFFFF" bgcolor="#F4F4F4"> <tr> <td width="19%"><strong><font color="#000000" size="2">Carga Horaria :</font></strong></td> <td width="81%"><input name="cargah" type="text" class="caixas_form" id="cargah" value="<? if($acao == 'alterar'){ echo $mostra[nome]; } else { echo ''; } ?>" size="40"></td> </tr> </table> </div></td> </tr> <tr> </tr> </table></td> </tr> <tr> <td class="default"> </td> <td class="default"> <? if($id==""){?> <div align="center"> <input type="submit" name=but value="<? echo ucfirst($acao); ?>" class=caixas_form> <? }?> </div></td> </tr> </table></td> </form> </tr> </table></td> <td valign="top" width="1"> </td> </tr> <tr> <td colspan="3" height="1" width="100%"> </td> </tr> </table></td> </tr> </table></th> </tr> </table></th> </tr> <tr> <th scope="col"> </th> </tr> </table></th> </tr> </table></td> </tr> </table> </td> </tr></table>[/codebox] Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 ESerra Postado Abril 21, 2008 Denunciar Share Postado Abril 21, 2008 Pelo que eu vi só tem um select no seu código...<select name="estado_user" id="estado_user" >Para resgatar isso dai você usa $_POST['estado_user'] Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 Rafael Marinho Postado Abril 21, 2008 Autor Denunciar Share Postado Abril 21, 2008 então cara eu tentei isso tambem mais n deu certo n tentei assim tb<select name="estado_user" id="estado_user"> <option selected value="<?echo $mostra_estado['id_estado'];?>"><?echo $mostra_estado['estado'];?></option> <option>====</option> <?while($array = mysql_fetch_array($consulta_estados)) {?> <option value=<?echo $array['id_estado];?>"><?echo $array['estado'];?></option> <?}?> </select>mais tb n foi os outros campos do formulario esta tudo ok retornando e alterando mais esse n volta n sei porque?Pelo que eu vi só tem um select no seu código...<select name="estado_user" id="estado_user" >Para resgatar isso dai você usa $_POST['estado_user]então cara eu tentei isso tambem mais n deu certo n tentei assim tb<select name="estado_user" id="estado_user"><option selected value="<?echo $mostra_estado['id_estado'];?>"><?echo $mostra_estado['estado'];?></option><option>====</option><?while($array = mysql_fetch_array($consulta_estados)) {?><option value=<?echo $array['id_estado];?>"><?echo $array['estado'];?></option><?}?></select>mais tb n foi os outros campos do formulario esta tudo ok retornando e alterando mais esse n volta n sei porque? Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 ESerra Postado Abril 21, 2008 Denunciar Share Postado Abril 21, 2008 Teste com isso:<select name="estado_user" id="estado_user"> <option value="1">valor1</option> <option value="2">valor2</option> <option value="3">valor3</option> </select>Tente resgatar um desses valores Citar Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
Rafael Marinho
Link para o comentário
Compartilhar em outros sites
3 respostass a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.