Welcome to TalkGraphics.com
Results 1 to 3 of 3
  1. #1

    Default Problem with mailer form

    Hi, first time using PHP or setting up a form for my nephew's Xtreme-generated website using Not2sure's script at http://www.kirupa.com/web/form_mailer.htm (although I'm an old ex-mainframe techy who'll have a go at any piece of code I see!)

    He reports mails not being consistently sent to his email address. We're using the location header to present a 'thank you' page after hitting submit on the form. He thinks mails are not being sent if the 'thank you' page is closed rather than the user then going to another page on the site.

    Only thing I can think off is that the script is being aborted by the action of closing the page rather than exiting cleanly after the page is navigated away from. However, the mail action is requested before redirection to the thank-you page. Is the mail call an async process and therefore perhaps I should test/wait for its success as I've noticed on other scripts here? Or is it a problem with the hosting site's PHP? Or a quirk of Xtreme's generated HTML?

    The form's at http://www.kineticfox.com/bookingenquiry.htm (BTW, we know the site needs a bit of tidying up but it was his first attempt and you know how youngsters rush at things!)

    Thanks

  2. #2
    Join Date
    Nov 2009
    Posts
    24

    Default Re: Problem with mailer form

    try http://jotform.com/

    As recommended in the gallery forum. i have tested this with no problems so far

  3. #3
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Problem with mailer form

    There shouldn't be any problems with Xtreme generated HTML.
    However, just to be sure you could simply create a blank HTML page with form and check if it works better. Like this for example:
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"/>
    </head>
    <body style="background-color: Black">
    
    <font face=verdana size=1 /><br />	
    <form action ="mailer.php" name="contact form" method ="post">		
    <table width="600" cellpadding="5" cellspacing="0">		
    			
    <tr>	<td><input type ="text" name="Title"></td>	</tr>
    <tr>	<td><input type ="text" name="Forename"></td>	</tr>
    <tr>	<td><input type ="text" name="Surname  "></td>	</tr>
    <tr>	<td><input type ="text" name="Date of Birth"></td>	</tr>
    <tr>	<td><select class="other" name="Event" ><option></option><option>Alton Towers: Saturday June 5th 2010</option><option>Alton Towers: Wednesday June 9th 2010</option></select></td>	</tr>
    <tr>
    	<td>
    	<input type ="radio" value ="Adult" name ="Ticket" id ="Ticket" checked /> &nbsp; &nbsp;&nbsp;  
    	<input type ="radio" value ="Child" name ="Ticket" id ="Ticket"  />&nbsp;&nbsp;&nbsp;&nbsp;
    	<input type ="radio" value ="Student" name ="Ticket" id ="Ticket"  />  &nbsp;&nbsp;&nbsp;&nbsp;
    	<input type ="radio" value ="Concession" name ="Ticket" id ="Ticket"  />   
    	</td>
    </tr>
    <tr> <td>&nbsp;&nbsp;</td></tr>
    <tr>	<td><textarea name="Address" rows="4" cols="35"></textarea></td> </tr>
    <tr>	<td><input type ="text" name="Contact Email"></td>	</tr>
    <tr>	<td><input type ="text" name="Contact Mobile"></td>	</tr>
    
    </table>                  
    <br>                     
    <input type="submit" name="submit" value="Submit">
    </form>               
    </font> 
    
    </body>
    </html>
    The actual issue may depend on browser software, server even visitor connection (ISP).

    Technically speaking, the form is correctly placed in the Xtreme design. But the form code does not comply with XHTML 1.0 Transitional format produced by Xtreme. I suggest to check the page with W3C Validator for more hints. Although these compliance issues are not likely to bring any problems in major browsers, it's usually safer to have them sorted out.
    John.

 

 

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
  •