Jump to content
Fórum Script Brasil
  • 0

Formulário Que A Própria Pessoa Digita O E-mail


denisromulo
 Share

Question

Montei um formulário do qual a pessoa envia um e-mail para convidar a outra para sua festa, só que está dando erro, quando vc. clica em enviar, está dizendo que a página não existe...

Preciso da ajuda de vocês....

<?php
$email_dest = "email_dest"  
  <table border=0>
    <tr> 
      <td valign="top" width="316" height="18"> <font face="MS sans serif, sans-serif, arial, verdana" size=1> 
        <font color="#333366"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#FF0033">Preencha 
        os dados e envie seu convite personalizado.</font><font size="3" color="#996600"> 
        </font></b></font></font></td>
    </tr>
  </table>
  <form name="form1" method="post" action="<?php echo $PATH_INFO ?>?formsim=true"> 
  <table border="0" cellspacing="0" cellpadding="4" width="304">
      <tr> 
        <td colspan="2" align="left"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Dados 
          do Destinat&aacute;rio:</font></b></td>
      </tr>
      <tr> 
        <td align="center"> 
          <div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Nome: 
            </font></div>
        </td>
        <td> 
          <input type="Text" name="nome1" size="30" value="" class="formbox">
        </td>
      </tr>
      <tr> 
        <td align="center"> 
          <div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">E-mail: 
            </font></div>
        </td>
        <td> 
          <input type="Text" name="email_dest" size="30" value="" class="formbox">
        </td>
      </tr>
    </table>
    <br>
    <table border="0" cellspacing="0" cellpadding="4" width="304">
      <tr> 
        <td colspan="2" align="left"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Remetente:</font></b></td>
      </tr>
      <tr> 
        <td align="center"> 
          <div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Aniversariante:</font></div>
        </td>
        <td> 
          <input type="Text" name="niver" size="30" value="" class="formbox">
        </td>
      </tr>
      <tr> 
        <td align="center"> 
          <div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">E-mail:</font></div>
        </td>
        <td> 
          <input type="Text" name="email2" size="30" value="" class="formbox">
        </td>
      </tr>
    </table>
    <table border="0" cellspacing="0" cellpadding="4" width="304">
      <tr> 
        <td align="center"> 
          <div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Data 
            da Festa:</font></div>
        </td>
        <td> 
          <input type="Text" name="data" size="30" value="" class="formbox">
        </td>
      </tr>
      <tr> 
        <td align="center"> 
          <div align="left"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">Horas:</font></div>
        </td>
        <td> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
          <select name="inicio" size="1">
            <option selected>In&iacute;cio:</option>
            <option>08:00</option>
            <option>08:30</option>
            <option>09:00</option>
            <option>09:30</option>
            <option>10:00</option>
            <option>10:30</option>
            <option>11:00</option>
            <option>11:30</option>
            <option>12:00</option>
            <option>12:30</option>
            <option>13:00</option>
            <option>13:30</option>
            <option>14:00</option>
            <option>14:30</option>
            <option>15:00</option>
            <option>15:30</option>
            <option>16:00</option>
            <option>16:30</option>
            <option>17:00</option>
            <option>17:30</option>
            <option>18:00</option>
            <option>18:30</option>
            <option>19:00</option>
            <option>19:30</option>
            <option>20:00</option>
            <option>20:30</option>
            <option>21:00</option>
            <option>21:30</option>
            <option>22:00</option>
            <option>22:30</option>
            <option>23:00</option>
            <option>23:30</option>
            <option>00:00</option>
          </select>
          </font> <font face="Verdana, Arial, Helvetica, sans-serif" size="1">&agrave;s</font><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
          </font> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
          </font> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> 
          <select name="fim" size="1">
            <option selected>Fim:</option>
            <option>08:00</option>
            <option>08:30</option>
            <option>09:00</option>
            <option>09:30</option>
            <option>10:00</option>
            <option>10:30</option>
            <option>11:00</option>
            <option>11:30</option>
            <option>12:00</option>
            <option>12:30</option>
            <option>13:00</option>
            <option>13:30</option>
            <option>14:00</option>
            <option>14:30</option>
            <option>15:00</option>
            <option>15:30</option>
            <option>16:00</option>
            <option>16:30</option>
            <option>17:00</option>
            <option>17:30</option>
            <option>18:00</option>
            <option>18:30</option>
            <option>19:00</option>
            <option>19:30</option>
            <option>20:00</option>
            <option>20:30</option>
            <option>21:00</option>
            <option>21:30</option>
            <option>22:00</option>
            <option>22:30</option>
            <option>23:00</option>
            <option>23:30</option>
            <option>00:00</option>
          </select>
          Horas </font> </td>
      </tr>
    </table>
    <font face="Verdana, Arial, Helvetica, sans-serif"> </font> 
    <p align="center"><font face="Verdana, Arial, Helvetica, sans-serif"><img src="imagens_site/convite_correto_peq.jpg" width="283" height="197"><br>
      <input type="submit" name="Submit" value="Enviar">
      </font> 
  
  <?php
if(isset($formsim)) {
mail("$nome1","$email_dest","$niver","$email2","$data"."$inicio"."$fim");
}?> 

Obrigado

Denis Romulo

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Pelo que percebi voce esta utilizando o register globals em on, mude as variaveis pré definidas como o $PATH_INFO para as novas, e ai voce usa o register globals em off é bem melhor, verifica tambem se a pagina tem algum acento, na internet não é recomendado utilizar acentos nas paginas, ai retornam estes erros.

abraços.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      150.8k
    • Total Posts
      648.5k
×
×
  • Create New...