Ir para conteúdo
Fórum Script Brasil

ikkinet

Membros
  • Total de itens

    435
  • Registro em

  • Última visita

Posts postados por ikkinet

  1. cara... o erro do seu script é muito simples... pega o seu script inicial....

    <html>

    <head><title>Aprendendo PHP</title></head>

    <body>

    <?php

    if ($texto != ""){

    echo "Você digitou \"$texto\"<br><br>";

    }

    ?>

    <form method=post action="<? echo $PATH_INFO; ?>">

    <input type="text" name="texto" value="" size=10>

    <br>

    <input type="submit" name="sub" value="Enviar!">

    </form>

    </body>

    </html>

    Agora tenta ai... se não der, poste aki...

  2. cara... então vai pelo DOS...

    entra no dos e digita

    FTP

    vai aparecer o prompt ftp>

    ai você digita open

    vai aparecer Para

    ai você digita oo endereco ftp do seu servidor...

    depois você digita seu nome de usuario e sua senha....

    ai depois você entra na pasta que esta o contador usando cd nomedapasta e digita

    quote

    ai vai aparecer Linha de comando a enviar

    você digita SITE CHMOD cont.txt 777

    vai aparecer ok ou algo assim... então você desconecta usando quit

    so isso...

    qualquer duvida posta ai...

  3. é o seguinte... se você deixar o register_globals=On; você não vai precisar de pegar as variaveis... elas já serão automaticamente o que você colocou em name="" no formulario...

    agora, eu mandaria este mail sem declarar tantas variaveis assim...

    if (@mail("destino@destino.com.br", "TESTANDO", "Empresa: $empresa\nRamo: $ramo...", "From: $empresa<$email>")) {
    echo "mensagem eviada com Sucesso!";
    } else {
    echo "A mensagem não pode ser entregue com sucesso";
    }
    ?>

    já fica bem mais fácil não???

    tchau....

  4. cara... eu testei estes arquivos e funcionaram normalmente aki...

    ai vai os codigos deles...

    send.htm

    <html>
    <head>
    <title>Teste PHP</title>
    </head>
    <body>
    <form action="send.php" method="POST">
    Nome: <input type="text" name="nome"><br>
    <input type="submit" value="Enviar">
    </form>
    </body>
    </html>
    send.php
    <html>
    <head>
    <title>Teste PHP</title>
    </head>
    <body>
    O nome é: <? echo $nome; ?>
    </body>
    </html>

    se ai não der certo, o problema e com o servidor mesmo...]

    fui....

  5. $Insere = mysql_query("INSERT INTO usuarios

    (usuario) VALUES ('$usuario')");

    $Insere = mysql_query($Insere);

    mysql_close ($gso_conexao);

    Cara... tenta mudar o nome da segunda variavel. tipo assim..

    $Insere = mysql_query("INSERT INTO usuarios 
    
    (usuario) VALUES ('$usuario')"); 
    
    $Inserido = mysql_query($Insere);
    
    mysql_close ($gso_conexao);

    pode ser isto q esta dando errado...

  6. meu site tem um sistema interno onde tem uma lista dos usuarios cadastrados.

    eu gostaria de saber se tem alguma maneira de eu fazer uma pesquisa aproximada.

    por exemplo: eu digito Pedro e ai so acha onde tiver Pedro exatamente igual. tem alguma maneira de eu digitar somente ped e sair todos os registros que tenham isso???

  7. Carol... eu fiz um que está disponível na seção de downloads do site scriptbrasil... e bem simples e em php... caso não queira fazer o down ai vai ele..

    <?php
    
    # PT-BR: 
    #############################
    #                           #
    #  IkkiNET! O mundo da NET  #
    #   (www.ikkinet.com.br)    #
    #                           #
    #############################
    # EN-US: 
    ###############################
    #                             #
    #  IkkiNET! The world of NET  #
    #  (www.ikkinet.com.br/eng)   #
    #                             #
    ###############################
    
    # PT-BR: Script feito por: Pedro Braga
    # EN-US: Script by: Pedro Braga
    
    # PT-BR: Codificado em Sábado, 8 de Março de 2003 - 14:40 GMT
    # EN-US: Coded in: Sat, March 8th, 2003 - 14:40 GMT
    
    # PT-BR: Empresa: IkkiNET! O mundo da NET
    # EN-US: Company: IkkiNET O mundo da NET
    
    # PT-BR: Suprido por: Patrício Barbosa
    # EN-US: Supplied by: Patrício Barbosa
    
    # PT-BR: Supervisionado por: Marcelo Lasmar
    # EN-US: Supervisioned by: Marcelo Lasmar
    
    # PT-BR: Chefe de Departamento: Daniel Reitano
    # EN-US: Department Boss: Daniel Reitano
    
    # PT-BR: INÍCIO
    # EN-US: START
    
    # PT-BR: Lê, do servidor, o dia em inglês.
    # EN-US: Read from server the day in English.
    
    $english_day = date("l");
    
    # PT-BR: Verifica o dia e encontra seu nome em português.
    # EN-US: Check the day and find its name in Portuguese.
    
    switch($english_day)
    {
        case "Monday":
      $portuguese_day = "Segunda-feira";
      break;
        case "Tuesday":
      $portuguese_day = "Terça-feira";
      break;
        case "Wednesday":
      $portuguese_day = "Quarta-feira";
      break;
        case "Thursday":
      $portuguese_day = "Quinta-feira";
      break;    
        case "Friday":
      $portuguese_day = "Sexta-feira";
      break;
        case "Saturday":
      $portuguese_day = "Sábado";
      break;
        case "Sunday":
      $portuguese_day = "Domingo";
      break;
    }
    
    # PT-BR: Lê, do servidor, o nome do dia em inglês.
    # EN-US: Read from server the month in English.
    
    $english_month = date("n");
    
    # PT-BR: Verifica o mês e encontra seu nome em português.
    # EN-US: Check the month and find its name in Portuguese.
    
    switch($english_month)
    {
        case "1":
      $portuguese_month = "Janeiro";
      break;
        case "2":
      $portuguese_month = "Fevereiro";
      break;
        case "3":
      $portuguese_month = "Março";
      break;
        case "4":
      $portuguese_month = "Abril";
      break;
        case "5":
      $portuguese_month = "Maio";
      break;
        case "6":
      $portuguese_month = "Junho";
      break;
        case "7":
      $portuguese_month = "Julho";
      break;
        case "8":
      $portuguese_month = "Agosto";
      break;
        case "9":
      $portuguese_month = "Setembro";
      break;
        case "10":
      $portuguese_month = "Outubro";
      break;
        case "11":
      $portuguese_month = "Novembro";
      break;
        case "12":
      $portuguese_month = "Dezembro";
      break;
    }
    
    # PT-BR: Lê, do servidor, o dia em números.
    # EN-US: Read from server the the day in numbers.
    $dia = date("d");
    
    # PT-BR: Lê, do servidor, o ano.
    # EN-US: Read from server the year.
    $ano = date("Y");
    
    # PT-BR: Lê, do servidor, a hora.
    # EN-US: Read from server the hour.
    $hora = date("H");
    
    # PT-BR: Lê, do servidor, os minutos.
    # EN-US: Read from server the minutes.
    $min = date("i");
    
    # PT-BR: Imprime na tela o resultado.
    # EN-US: Print on the screen the result.
    
    $datacompleta = "$portuguese_day, $dia de $portuguese_month de $ano - $hora:$min";
    echo $data;
    
    # PT-BR: INSTRUÇÕES FINAIS
    #    Para colocar a data em uma outra página, só se deve usar a função
    #    include();.
    # EN-US: FINAL INSTRUCTIONS
    #    To put the date on another page, just use the include(); funtion.
    
    # PT-BR: FIM
    # EN-US: END
    ?>

×
×
  • Criar Novo...