Ir para conteúdo
Fórum Script Brasil

Diego Vieira

Membros
  • Total de itens

    13
  • Registro em

  • Última visita

Sobre Diego Vieira

Diego Vieira's Achievements

0

Reputação

  1. Diego Vieira

    Sistema de postagem

    facil de fazer cara, mas free eu não te garanto! Manda mp que eu te passo as coordenadas!
  2. Problema resolvido, caso queiram saber como resolvi, entre em contato me mandando mp.
  3. Boa noite galerinha! Bem estou com uma dúvida, eu tenho uma pagina chamada "admin.php" e bem no topo tenho o seguinte codigo. <?php function deletar(){ echo "essa função vai deletar os usuários, dai tem as coisas que aparece, o formulário etc.."; } function postar_news(){ echo "aqui vai aparecer o formulário pra postar a noticia"; } function deletar_news(){ echo "aqui lista as noticias e tem a opção de deletar"; } etc... ?> Porem não estou sabendo fazer funcionar as funções, eu usei os echos porque ao clicar ia me mostrar esse texto, mas estou com essa duvida, porque quero que por exemplo o link "postar news" me mostre oque está no echo da function! bom agradeço quem me ajudar! Diego Vieira!
  4. eu centralizo usando assim #div-qualquer { margin: 0 auto width:500px; } eu centralizo assim.
  5. Opa galera, so eu novamente, estou com um problema, tenho uma div "PAI" que não cresce com o conteudo que está vindo do BD. vou postar os codigos e o endereço da página, já tentei de tudo e nada resolveu, tambem pesquisei e não encontrei nada. codigos: esse codigo mostra os jogos da categoria. <div id="conteudo-lados"> <?php $az = "SELECT * FROM fln_games where category ='$cate'"; $qery = mysql_query($az); while ($produ = mysql_fetch_array($qery)) { $game = $produ['title']; $icon = $produ['icon']; $iddojogo = $produ['fileid']; $cat = $produ['category']; $cortado = "$game"; $total = $produ['timesplayed']; $limite = 11; $cortado= substr($cortado, 0,$limite); echo "<div id='icones'><a href='jogar.php?id=$iddojogo&cat=$cat'><img src='http://flashnix.gamenix.com.br/games/image/$icon' /><br>$cortado</a></div>"; } ?> </div> esse outro o css das divs "conteudo-lados" e "icones": #icones {margin: 0 5px 3px 5px; width:70px; height:75px; float:left; text-align:center} #icones a {color:#000000; text-decoration:none} #icones a:hover {color:#FF0000; text-decoration:none} #conteudo-lados { border-left:2px solid #6191DF; border-right:2px solid #6191DF; font-family:verdana; font-size:10px; } Bem para entender melhor o erro, aqui vai o link http://flashnix.gamenix.com.br/categoria.php?cat=5 Agradeço a todos, até!
  6. crie um campo id no sql, e deixe como primário.
  7. no caso essa é a função do registro, que se encontra no arquivo process.php function procRegister(){ global $session, $form; /* Convert username to all lowercase (by option) */ if(ALL_LOWERCASE){ $_POST['user'] = strtolower($_POST['user']); } /* Registration attempt */ $retval = $session->register($_POST['user'], $_POST['pass'], $_POST['email'], $_POST['avatar']); /* Registration Successful */ if($retval == 0){ $_SESSION['reguname'] = $_POST['user']; $_SESSION['regsuccess'] = true; header("Location: ".$session->referrer); } /* Error found with form */ else if($retval == 1){ $_SESSION['value_array'] = $_POST; $_SESSION['error_array'] = $form->getErrorArray(); header("Location: ".$session->referrer); } /* Registration attempt failed */ else if($retval == 2){ $_SESSION['reguname'] = $_POST['user']; $_SESSION['regsuccess'] = false; header("Location: ".$session->referrer); } }
  8. Obrigado euzin consegui resolver o problema mesmo assim agradeço. Feliz natal!! e boas festas!
  9. Gente eu to ficando maluco, já tentei de tudo, usei nosso amigo google, usei tutoriais, usei meu tio ^^, mas nada resolve vo postar os códigos e assima galera talvez me ajude. Oque acontece é o seguinte, eu criei um campo chamado "avatar" na tabela "users" mas oque está acontecendo é o seguinte se eu tento faze rum cadastro em retorna um erro dizendo que não foi possivel faze ro cadastro, mas seu eu tirar o campo "avatar", deletar, sumir com ele, o registro funciona.. então minha duvida é o seguinte como faço pra o que eu escrevi ir para o campo avatar no caso um link de uma foto ir pro campo avatar no banco? vou postar os códigos. cadastro.php <html> <title></title> <body> <? /** * The user is already logged in, not allowed to register. */ if($session->logged_in){ echo "Registro"; echo "<p>Desculpe mas o <b>$session->username</b>,já está registrado, escolha outro.. " ."<a href=\"home.php\">Inicio</a>.</p>"; } /** * The user has submitted the registration form and the * results have been processed. */ else if(isset($_SESSION['regsuccess'])){ /* Registration was successful */ if($_SESSION['regsuccess']){ echo "<h1>Registered!</h1>"; echo "<p>Obrigado <b>".$_SESSION['reguname']."</b>, Agora você faz parte da familia." ."logue ali do lado."; } /* Registration failed */ else{ echo "Falha no registro. <br />"; echo "<p>Pedimos desculpa, mas ocorreu um erro em seu registro<b>".$_SESSION['reguname']."</b>, " ."não pôde ser concluída. <br> Por favor, tente novamente mais tarde.</p>"; } unset($_SESSION['regsuccess']); unset($_SESSION['reguname']); } /** * The user has not filled out the registration form yet. * Below is the page with the sign-up form, the names * of the input fields are important and should not * be changed. */ else{ ?> <font color="#999999" size="+1" > Registro </font> <br> <br> <? if($form->num_errors > 0){ echo "<td><font size=\"2\" color=\"#ff0000\">".$form->num_errors." error(s) found</font></td>"; } ?> <form action="process.php" method="POST"> <table align="left" border="0" cellspacing="0" cellpadding="3"> <tr><td>Username:</td><td><input type="text" name="user" maxlength="30" value="<? echo $form->value("user"); ?>"></td><td><? echo $form->error("user"); ?></td></tr> <tr><td>Password:</td><td><input type="password" name="pass" maxlength="30" value="<? echo $form->value("pass"); ?>"></td><td><? echo $form->error("pass"); ?></td></tr> <tr><td>Email:</td><td><input type="text" name="email" maxlength="50" value="<? echo $form->value("email"); ?>"> <br></td><td><? echo $form->error("email"); ?></td></tr> <tr><td>Avatar:</td><td><input type="text" name="avatar" maxlength="" value="<? echo $form->value("avatar"); ?>"> <tr><td colspan="2" align="right"> <input type="hidden" name="subjoin" value="1"> <input type="submit" value="Join!"></td></tr> <tr><td colspan="2" align="left"><a href="home.php">Back to home</a></td></tr> </table> </form> <? } ?> </body> </html> process.php ( ela que da o action) <? include("include/session.php"); class Process { /* Class constructor */ function Process(){ global $session; /* User submitted login form */ if(isset($_POST['sublogin'])){ $this->procLogin(); } /* User submitted registration form */ else if(isset($_POST['subjoin'])){ $this->procRegister(); } /* User submitted forgot password form */ else if(isset($_POST['subforgot'])){ $this->procForgotPass(); } /* User submitted edit account form */ else if(isset($_POST['subedit'])){ $this->procEditAccount(); } /** * The only other reason user should be directed here * is if he wants to logout, which means user is * logged in currently. */ else if($session->logged_in){ $this->procLogout(); } /** * Should not get here, which means user is viewing this page * by mistake and therefore is redirected. */ else{ header("Location: home.php"); } } /** * procLogin - Processes the user submitted login form, if errors * are found, the user is redirected to correct the information, * if not, the user is effectively logged in to the system. */ function procLogin(){ global $session, $form; /* Login attempt */ $retval = $session->login($_POST['user'], $_POST['pass'], isset($_POST['remember'])); /* Login successful */ if($retval){ header("Location: ".$session->referrer); } /* Login failed */ else{ $_SESSION['value_array'] = $_POST; $_SESSION['error_array'] = $form->getErrorArray(); header("Location: ".$session->referrer); } } /** * procLogout - Simply attempts to log the user out of the system * given that there is no logout form to process. */ function procLogout(){ global $session; $retval = $session->logout(); header("Location: main.php"); } /** * procRegister - Processes the user submitted registration form, * if errors are found, the user is redirected to correct the * information, if not, the user is effectively registered with * the system and an email is (optionally) sent to the newly * created user. */ function procRegister(){ global $session, $form; /* Convert username to all lowercase (by option) */ if(ALL_LOWERCASE){ $_POST['user'] = strtolower($_POST['user']); } /* Registration attempt */ $retval = $session->register($_POST['user'], $_POST['pass'], $_POST['email'], $_POST['avatar']); /* Registration Successful */ if($retval == 0){ $_SESSION['reguname'] = $_POST['user']; $_SESSION['regsuccess'] = true; header("Location: ".$session->referrer); } /* Error found with form */ else if($retval == 1){ $_SESSION['value_array'] = $_POST; $_SESSION['error_array'] = $form->getErrorArray(); header("Location: ".$session->referrer); } /* Registration attempt failed */ else if($retval == 2){ $_SESSION['reguname'] = $_POST['user']; $_SESSION['regsuccess'] = false; header("Location: ".$session->referrer); } } /** * procForgotPass - Validates the given username then if * everything is fine, a new password is generated and * emailed to the address the user gave on sign up. */ function procForgotPass(){ global $database, $session, $mailer, $form; /* Username error checking */ $subuser = $_POST['user']; $field = "user"; //Use field name for username if(!$subuser || strlen($subuser = trim($subuser)) == 0){ $form->setError($field, "* Username not entered<br>"); } else{ /* Make sure username is in database */ $subuser = stripslashes($subuser); if(strlen($subuser) < 5 || strlen($subuser) > 30 || !eregi("^([0-9a-z])+$", $subuser) || (!$database->usernameTaken($subuser))){ $form->setError($field, "* Username does not exist<br>"); } } /* Errors exist, have user correct them */ if($form->num_errors > 0){ $_SESSION['value_array'] = $_POST; $_SESSION['error_array'] = $form->getErrorArray(); } /* Generate new password and email it to user */ else{ /* Generate new password */ $newpass = $session->generateRandStr(8); /* Get email of user */ $usrinf = $database->getUserInfo($subuser); $email = $usrinf['email']; /* Attempt to send the email with new password */ if($mailer->sendNewPass($subuser,$email,$newpass)){ /* Email sent, update database */ $database->updateUserField($subuser, "password", md5($newpass)); $_SESSION['forgotpass'] = true; } /* Email failure, do not change password */ else{ $_SESSION['forgotpass'] = false; } } header("Location: ".$session->referrer); } /** * procEditAccount - Attempts to edit the user's account * information, including the password, which must be verified * before a change is made. */ function procEditAccount(){ global $session, $form; /* Account edit attempt */ $retval = $session->editAccount($_POST['curpass'], $_POST['newpass'], $_POST['email'], $_POST['avatar']); /* Account edit successful */ if($retval){ $_SESSION['useredit'] = true; header("Location: ".$session->referrer); } /* Error found with form */ else{ $_SESSION['value_array'] = $_POST; $_SESSION['error_array'] = $form->getErrorArray(); header("Location: ".$session->referrer); } } }; /* Initialize process */ $process = new Process; ?> constants.php ( é bem provavel que o problema esteja aki) <? /** * Constants.php * * This file is intended to group all constants to * make it easier for the site administrator to tweak * the login script. * * Written by: Jpmaster77 a.k.a. The Grandmaster of C++ (GMC) * Last Updated: August 19, 2004 */ /** * Database Constants - these constants are required * in order for there to be a successful connection * to the MySQL database. Make sure the information is * correct. */ define("DB_SERVER", "banco.acngames.com"); define("DB_USER", "acngames"); define("DB_PASS", "***********"); define("DB_NAME", "acngames"); /** * Database Table Constants - these constants * hold the names of all the database tables used * in the script. */ define("TBL_USERS", "users"); define("TBL_ACTIVE_USERS", "active_users"); define("TBL_ACTIVE_GUESTS", "active_guests"); define("TBL_BANNED_USERS", "banned_users"); /** * Special Names and Level Constants - the admin * page will only be accessible to the user with * the admin name and also to those users at the * admin user level. Feel free to change the names * and level constants as you see fit, you may * also add additional level specifications. * Levels must be digits between 0-9. */ define("ADMIN_NAME", "admin"); define("GUEST_NAME", "Guest"); define("ADMIN_LEVEL", 9); define("USER_LEVEL", 1); define("GUEST_LEVEL", 0); /** * This boolean constant controls whether or * not the script keeps track of active users * and active guests who are visiting the site. */ define("TRACK_VISITORS", true); /** * Timeout Constants - these constants refer to * the maximum amount of time (in minutes) after * their last page fresh that a user and guest * are still considered active visitors. */ define("USER_TIMEOUT", 10); define("GUEST_TIMEOUT", 5); /** * Cookie Constants - these are the parameters * to the setcookie function call, change them * if necessary to fit your website. If you need * help, visit www.php.net for more info. * <http://www.php.net/manual/en/function.setcookie.php> */ define("COOKIE_EXPIRE", 60*60*24*100); //100 days by default define("COOKIE_PATH", "/"); //Avaible in whole domain /** * Email Constants - these specify what goes in * the from field in the emails that the script * sends to users, and whether to send a * welcome email to newly registered users. */ define("EMAIL_FROM_NAME", "CiberSox"); define("EMAIL_FROM_ADDR", "cibersox@acngames.com"); define("EMAIL_WELCOME", true); /** * This constant forces all users to have * lowercase usernames, capital letters are * converted automatically. */ define("ALL_LOWERCASE", true); ?> Bem galerinha, espero que me ajudem.. pois preciso de vs e desejo a todos Feliz natal e boas festas.
  10. Boa Tarde a todos, Estou com um dúvida, Tenho um sistema de login que está funcionando perfeitamente, e é minha primeira vez que estou usando banco de dados, porque antes eu fazia de outro jeito, mas resolvi migrar. Eu recentemente criei uma tabela chamada ''avatar'' como eu faco pra mim mostrar a foto na página, eu sei que tenho que colocar dentro da tag <img> até ai td bem, mas minha duvida é o seguinte, qual o código que faz puxar essa informacão da tabela, pois tentei usar <? echo $_SESSION['avatar'];?> e não me volto resutados positivos. Agradeco deis de já. Atenciosamente Diego.
  11. Primeiramente boa noite, Olá, estou com uma dúvida, preciso muito fazer uma página que altere uam variavel vazia, para ficar fácil de entender vou explicar melhor. Digamos que eu tenho um formulário chamado "altera" Formulário code: form id="form1" name="form1" method="post" action=""> Alterar : <label> <input name="nome" type="text" id="nome" /> </label> </form> <label> <input type="submit" name="Submit" value="Enviar" /> </label></form> no caso gostaria que esse formulario altere a variavel $nome. Mas estou iniciando em php e não sei como fazer. Gostaria de dicas Atenção não quero que crie nada para mim só quero sugestões. No action eu sei que tneho que colocar uma página que faça isso para mim, mas não tenho idéia alguma de como fazer isso. Deis de já agradeço.
  12. você é um mestre muito obrigado probleam resolvido deu alguns problemas mas eu consegui concertrar graças a sua linha consegui arrumar muito vlw, e o video na sua assinatura muito lgl!
  13. Primeiramente boa tarde, Bom pessoal tenho o seguinte arquivo "editar.php" esse editar php tem como função editar as váriaveis que se encontra em tal arquivo. Mas ao clicar em OK nada acontece, irei postar o código para vocês verem. <? include "protect.php"; include "config.inc.php"; if (!file_exists("usuarios/$nome2.php") && $nome2 != ""): # SALVA O NOME NOVO NO COOKIE DO NOME SE O USUARIO TROCAR DE NOME, PARA O INCLUDE DAR CERTO setcookie("llbra_nome",$nome2,time()+3600*$tempo); endif; $nome = $_COOKIE['llbra_nome']; include "usuarios/$nome.php"; ?> <? include "protect.php"; include "config.inc.php"; if (!file_exists("usuarios/$nome2.php") && $nome2 != ""): # SALVA O NOME NOVO NO COOKIE DO NOME SE O USUARIO TROCAR DE NOME, PARA O INCLUDE DAR CERTO setcookie("llbra_nome",$nome2,time()+3600*$tempo); endif; $nome = $_COOKIE['llbra_nome']; include "usuarios/$nome.php"; ?> <? if ($acao == "editar"): $fake = htmlspecialchars(trim($_POST['admin'])); // para seguranca - detalhes no 'admin.php' $erro = ""; # PEGANDO AS VARIAVEIS // htmscpecialchars() -> remove tags html no codigo // trim() -> remove espacos duplos $nome2 = htmlspecialchars(trim($_POST['nome2'])); $email2 = htmlspecialchars(trim($_POST['email2'])); $senha2 = htmlspecialchars(trim($_POST['senha2'])); $nomeC2 = htmlspecialchars(trim($_POST['nomeC2'])); $cidade2 = htmlspecialchars(trim($_POST['cidade2'])); $avatar2 = htmlspecialchars(trim($_POST['avatar2'])); # VERIFICA&Ccedil;&Atilde;O DE TAMANHO if (strlen($nome2) > $len_nome || strlen($email2) > $len_mail || strlen($senha2) > $len_pass || strlen($nomeC2) > $len_nomeC || strlen($cidade2) > $len_cidade): $erro .= "<center>Algum campo excedeu o tamanho limite.</center><br><br>"; endif; if ($nome != "$nome2" && file_exists("usuarios/$nome2.php")): $erro .= "<center>J&aacute; existe um usu&aacute;rio com esse Login.</center><br><br>"; endif; if ($erro != ""): echo "<br><center><h1>Os seguintes erros foram encontrados:</h1></center>"; echo $erro; else: $fileMessage = "<?\n"; if ($nomeC2 == ""): $fileMessage .="\$nomeC = \"$nomeC\";\n"; else: $fileMessage .="\$nomeC = \"$nomeC2\";\n"; endif; if ($cidade2 == ""): $fileMessage .="\$cidade = \"$cidade\";\n"; else: $fileMessage .="\$cidade = \"$cidade2\";\n"; endif; if ($email2 == ""): $fileMessage .="\$email = \"$email\";\n"; else: $fileMessage .="\$email = \"$email2\";\n"; endif; if ($nome2 == ""): $fileMessage .="\$nome = \"$nome\";\n"; else: $fileMessage .="\$nome = \"$nome2\";\n"; endif; if ($senha2 == ""): $fileMessage .="\$senha = \"$senha\";\n"; else: $nova_senha = crypt($senha2, "salt"); $fileMessage .="\$senha = \"$nova_senha\";\n"; endif; if ($admin != ""): $fileMessage .="\$admin = \"$admin\";\n"; else: endif; if ($avatar == ""): $fileMessage .="$avatar = \"$avatar\";\n"; else: $fileMessage .="\$avatar = \"$avatar2\";\n"; endif; $fileMessage .="?>"; if ($nome2 != ""): unlink("usuarios/$nome.php"); $fp = fopen("usuarios/$nome2.php","w"); fputs($fp,$fileMessage); fclose($fp); else: $fp = fopen("usuarios/$nome.php","w"); fputs($fp,$fileMessage); fclose($fp); endif; echo "<center>Dados editados com Sucesso!</center>"; exit; endif;endif; ?> <html><head><title>Logado no <?=$nome_site?></title> <link href="style.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- a:link { color: #FF0000; text-decoration: none; } a:visited { color: #FF0000; text-decoration: none; } a:hover { color: #0000FF; text-decoration: none; } a:active { color: #000000; text-decoration: none; } .style3 {color: #FF0000} .style4 {color: #00FF00} body,td,th { color: #FFFFFF; font-weight: bold; } body { background-color: #000000; } .style5 {font-size: 7pt} --> </style> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head> <body> <p> </p> <form method="post" action="editar.php"> <p align="left"> <input type="hidden" name="acao" value="editar"> Deixe em branco os campos abaixo que n&atilde;o quiser alterar.<br> <br> Alterar Nome: &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; <input type="text" name="nomeC2" size="20" maxlength="50" value=""> <br> <span class="style4">Atual : <b><? echo "$nomeC"; ?></b></span><br> <br> Alterar Cidade: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; <input type="text" name="cidade2" size="20" maxlength="30" value=""> <br> <span class="style4"><b> Atual : <? echo "$cidade"; ?></b></span><br> <br> Alterar E-mail:&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; <input type="text" name="email2" size="20" maxlength="30" value=""> <br> <span class="style4">Atual : <? echo "$email"; ?></span><br> <br> Alterar Login: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="nome2" size="20" maxlength="20" value=""> <br> <span class="style4">Atual : <? echo "$nome"; ?></span><br> <br> Alterar Senha: &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <input type="password" name="nova_senha" size="20" maxlength="20" value=""> <br> </p> <div align="center">Alterar Avatar<br> <span class="style5">( <span class="style3">Copie o nome do arquivo gerado pelo upload e cole depois do &quot;avatar/&quot; Exemplo: avatar/teste.jpg, Recomendamos foto tamanho <span class="style4">114px</span> por <span class="style4">104px</span> </span> ) <br> <input type="text" name="$avatar2" size="30" maxlength="999" value="avatar/"> </span><br> <br> </div> <div id="avatar" style="height:114px; width:104px; margin-left:auto; margin-right:auto;"> <div align="center"><img src="<? echo "$avatar"; ?>" name="$nome" width="103" height="114" border="1" id="$nome" /><a href="foto.php">Enviar Foto </a></div> </div> <div align="center"><br> <br> <input name="submit" type="submit" value="OK"> </div> </form> </body> </html> <? if ($acao == descadastrar) { $apagar = $nome; $apagar .= ".php"; unlink ("usuarios/$apagar"); echo "<center>Usuário deletado!</center> &lt;script>window.location='deslogar.php'</script>"; } ?> [/codebox] Bom espero que em ajudem. Eu to aprendendo php então por favor pega leve comigo, eu fiz o sistema mas sempre me escapa algo xD. Obrigado a todos.
×
×
  • Criar Novo...