SitePoint Sponsor

User Tag List

Results 1 to 11 of 11

Thread: a form problem.

Threaded View

  1. #1
    SitePoint Evangelist
    Join Date
    Jan 2001
    Location
    earth
    Posts
    501
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    a form problem.

    Hello.

    This is the code I've on my form:

    Code:
    <form action="thank.htm" method="post" name="formulario">
          <input type=hidden name="mail" value="teste@teste.com">
          <input type=hidden name="email_subject" value="teste">
    
    <table width="582" border="0" align="center" cellpadding="10">
        <tr> 
          <td width="121"> 
            <span class="texto">Name:</span> 
          </td>
          <td width="451"> 
            <input type="text" name="identity" size="30" value="">
          </td>
        </tr>
        <td width="121"> <span class="texto">mail:</span></td>
        <td width="451"> 
          <input type="text" name="mail" size="30" value="">
        </td>
        </tr>
    
    </form>
    Well. It doesn't work. I don't received any email with the information about the fields' form.


    I'm looking for a code that redirects the page after the user submits to the thank.htm page. And I want to received all the information in the mail.

    I've another away, but I don't want like this. Because when u click on submit appear an alert box of IE. And it seems that the email_subject doesn't work. But with this code I receveid the information on my mail.
    Code:
    <form action="mailto:margarida@mgoffline.com" enctype="text/plain"  method="post" name="formulario" onsubmit="window.location='thank.htm'">
    
    <input type=hidden name="email_subject" value="teste" >
    Thank you.
    Last edited by magi; Aug 27, 2002 at 07:37.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •