FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!


form submit





gnomme
what is wrong with my code? when I do Submit it should open my outlook and send de form, but it doesn´t work! Does anybody knows how to do it?

Code:
<form action="yourmail@provider.com" name="Cadastro" onSubmit="javascript:return valida_email();" "javascript:return valida_numero();" enctype="application/x-www-form-urlencoded">
              <table width="100%" border="0">
                    <tr>
                      <td width="200" class="texto">Nome</td>
                      <td width="100%"><input type="text" name="Nome" size="30" maxlength="100"></td>
                    </tr>
                    <tr>
                      <td width="200" class="texto">E-Mail</td>
                      <td width="100%"><input type="text" name="EMAIL" size="30" maxlength="100></td>
                      </tr>
                      <tr>
                      </tr>
                      <tr>
                        <td class="texto">
                        &nbsp;</td>
                    </tr>
                    <tr>
                      <td width="200" class="texto">Sexo</td>
                      <td width="100%"><select name="Sexo" class="menu_form" id="Sexo">
                          <option> </option>
                          <option>Masculino</option>
                          <option>Feminino</option>
                        </select>                      </td>
                    </tr>
                    <tr>
                      <td width="200" class="texto">Endere&ccedil;o</td>
                      <td width="100%"><input type="text" name="Endere&ccedil;o" size="50" maxlength="100"></td>
                    </tr>
                    <tr>
                      <td width="200" class="texto">Cidade</td>
                      <td width="100%"><input type="text" name="cidade" size="30" maxlength="100"></td>
                    </tr>
                    <tr>
                      <td width="200" class="texto">CEP</td>
                      <td width="100%"><input name="CEP" type="text" id="CEP" size="8" maxlength="8"></td>
                    </tr>
                    <tr>
                      <td width="200" class="texto">Assunto</td>
                      <td width="100%"><input type="text" name="Assunto" size="30" maxlength="100"></td>
                    </tr>
                    <tr>
                      <td width="200" class="texto">Mensagem</td>
                      <td width="100%" rowspan="2"><textarea name="coment&aacute;rio" rows="10" cols="40">Escreva sua pergunta....</textarea></td>
                    </tr>
                    <tr>
                      <td width="200" class="texto">&nbsp;</td>
                    </tr>
                    <tr>
                      <td width="200" class="texto">&nbsp;</td>
                      <td width="100%"><input name="Limpar" type="Reset" value="Clean">
                        &nbsp;
                        <input name="submit" type="submit" value="Send"></td>
                    </tr>
                  </table>
              </form>
pudovkin
Perhaps, you should use:
Code:
<form action="mailto:yourmail@provider.com" [...]

* "mailto:"
gnomme
pudovkin wrote:
Perhaps, you should use:
Code:
<form action="mailto:yourmail@provider.com" [...]

* "mailto:"

Thanks for helping, but even with mailto: it doesn't copy the form to the message!! please do it yoursef and tel me what hapens
Sad
pudovkin
Without the "mailto:", don't even opens a new message on my Outlook. Now, you can achieve that. Smile

About the form data: I don't see anything at your code which would gather the data and put into the message content of an e-mail. I understood you don't need a server-side script, but I think you may need an extra javascript to do that (I'm not sure what "valida_email();" function exactly does...).
pudovkin
Update:
Code:
<form action="MAILTO:yourmail@provider.com" [...] METHOD="POST">

But now, you have a brand new problem: breaking lines and the text encoding...
gnomme
pudovkin wrote:
Update:
Code:
<form action="MAILTO:yourmail@provider.com" [...] METHOD="POST">

But now, you have a brand new problem: breaking lines and the text encoding...

i don´t understand...can you be more specific?
Embarassed
pudovkin
Try putting the "mailto:" (which solves the issue about using the mail client) and the "method=post" (which solves the issue about sending the info to the message body). Then, you will face the new problems... Very Happy
gnomme
pudovkin wrote:
Try putting the "mailto:" (which solves the issue about using the mail client) and the "method=post" (which solves the issue about sending the info to the message body). Then, you will face the new problems... Very Happy

I am new at this....I canot reach it..can you help me how to put this in to work properly?
pudovkin
Code:
<form action="mailto:yourmail@provider.com" name="Cadastro" onSubmit="javascript:return valida_email();" "javascript:return valida_numero();" enctype="application/x-www-form-urlencoded" method="post">
  <table width="100%" border="0">
    <tr>
      <td width="200" class="texto">Nome</td>
      <td width="100%"><input type="text" name="Nome" size="30" maxlength="100"></td>
    </tr>
    <tr>
      <td width="200" class="texto">E-Mail</td>
      <td width="100%"><input type="text" name="EMAIL" size="30" maxlength="100"></td>
    </tr>
    <tr></tr>
    <tr>
      <td class="texto">&nbsp;</td>
    </tr>
    <tr>
      <td width="200" class="texto">Sexo</td>
      <td width="100%">
        <select name="Sexo" class="menu_form" id="Sexo">
          <option></option>
          <option>Masculino</option>
          <option>Feminino</option>
        </select>
      </td>
    </tr>
    <tr>
      <td width="200" class="texto">Endere&ccedil;o</td>
      <td width="100%"><input type="text" name="Endere&ccedil;o" size="50" maxlength="100"></td>
    </tr>
    <tr>
      <td width="200" class="texto">Cidade</td>
      <td width="100%"><input type="text" name="cidade" size="30" maxlength="100"></td>
    </tr>
    <tr>
      <td width="200" class="texto">CEP</td>
      <td width="100%"><input name="CEP" type="text" id="CEP" size="8" maxlength="8"></td>
    </tr>
    <tr>
      <td width="200" class="texto">Assunto</td>
      <td width="100%"><input type="text" name="Assunto" size="30" maxlength="100"></td>
    </tr>
    <tr>
      <td width="200" class="texto">Mensagem</td>
      <td width="100%" rowspan="2"><textarea name="coment&aacute;rio" rows="10" cols="40">Escreva sua pergunta....</textarea></td>
    </tr>
    <tr>
      <td width="200" class="texto">&nbsp;</td>
    </tr>
    <tr>
      <td width="200" class="texto">&nbsp;</td>
      <td width="100%">
        <input name="Limpar" type="Reset" value="Clean">
        <input name="submit" type="submit" value="Send">
      </td>
    </tr>
  </table>
</form>
gnomme
thanks dude
misterdimiz
Why don't you use PHP?
If you use it you don't need Outlook to send a form. Wink
Related topics
JavaScript confirm() problem
how to show only the name of the domain?
Win a free Acer TravelMate® Notebook computer!!!
Need Help Please (I offer all my frih$)
Frame/I frame problem 50$fri up for grabs!!!!!!
Just uploaded. Shouldn't be jibberish.
download doc file .
Need help fixing my php file
Changing internal data with scripting.
php page refresh
Using Javascript to Encrypt Data then POST to PHP
anyone know of a good php form processer script
*solved*
Javascipt killin me!
Reply to topic    Frihost Forum Index -> Webmaster and Internet -> Design Tips

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.