Form Submission to Email

Discussion in 'HTML & Website Design' started by pinkytoe, Jan 5, 2011.

  1. #1
    Hi Guys

    Looking for some HTML help here.


    I have a table with the following code.

        	<div id="signuptable">
                    	
                     
                        <div id="signuptable-top">
                    	<h2><span>SIGN UP NOW-</span> Get UB Rakeback Now</h2>                    
                        </div>
                      
                        
                        
                        	<div id="signuptable-yellowtop">
                            <h2>IMPORTANT: You must use bonus code: BESTUB30 and complete step 2!</h2>
                            </div>
                     
                        
                    
                        <div id="signuptable-content">
                        
                        	
                        		<div id="signuptable-left">
                                	
                                    <h3><span>Step</span> 1</h3>
                                    
                                    <p class="get-your-rakeback-now"><a href=""><img src="http://www.bestrakebacksite.org/wp-content/uploads/2011/01/getyourrakebacknow.png" border="0"/></a></p>
                                    
                                    <ul>
                                    	<li><span>!</span> Use bonus code: <a href="#">BESTUB30</a></li>
                                        <li><span>!</span> You MUST complete step 2 for confirmation</li>
                                        
                                    </ul>
                                    
                            	</div>
                          
                            
                           
                        		<div id="signuptable-left">
                                	
                                    <h3><span>Step</span> 2</h3>
                                    
                                                                 
                                    <ul>
                                    	<li>Needed to set up your rakeback payment</li>
    
                                        <li><h4>Alias:</h4><input type="text" class="signupinput" value="" name="alias"/></li>
                                        <li><h4>Email:</h4><input type="text" class="signupinput" value="" name="email"/></li>
                                        
                                    </ul>
                                    
                                    <input type="submit" value="" name="signup-submit" class="signup-submit"/>
                                    
                            	</div>
                           
                            
                            
                           
                        		<div id="signuptable-left">
                                	
                                    <h3><span>Step</span> 3</h3>
                                   
                                    
                                    <ul>
                                    	<li>Create a members area account for VIP offers, cashout options, your
    perdonal landing page and more.</li>
                                                                           
                                    </ul>
                                    
                                    <input type="submit" value="" name="register-account" class="register-account" onClick="location.href='http://members.bestrakebacksite.org/eng/my_account/register'"/>
                                    
                            	</div>
                    
                            
                            
                            
                            
                        </div>
                  
                        
                    </div>
                
    Code (markup):
    For those interested, the tabel looks like My Site


    I am looking for the details in step 2 to be submitted to an email address and then be redirected straight back to the site for the user to complete step 3.

    How do i implement this into the code?

    I realize I will probably need a .php script for the submission so has anyone any recommendations on one?


    Thanks for reading
     
    pinkytoe, Jan 5, 2011 IP
  2. computerlaptop

    computerlaptop Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    HEllo i want to know how to submit form to email so that one can received all form infromation in email , if u have seen Contact pages, inquiery pages in website same as i want. Either in PHP or ASP
     
    computerlaptop, Jan 5, 2011 IP
  3. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
    #3
    http://www.w3schools.com/php/php_mail.asp

    Few ways of doing this, put the code for emailing step 2 on the step 3 page to process the form on the previous page which of course has the form action set to the step 3 page, or you could simply use the same page and php to echo the different parts of the form depending what the user has submitted.
     
    jeremyhowell, Jan 5, 2011 IP
  4. pinkytoe

    pinkytoe Member

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #4
    Hi, thanks for the reply.


    I mean, I would like the user to submit the info in step 2 and then be redirected back to the page. Step 3 does not need the step 2 info to be completed. So I assume it will be a basic html refresh that will redirect back to the page.

    Say I have contact.php . Who would I edit the code a above to call that .php file when the user submits the information in step 2?
     
    pinkytoe, Jan 7, 2011 IP
  5. jeremyhowell

    jeremyhowell Member

    Messages:
    379
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    45
    #5
    Simply set the action of the form to the page you want the user to be redirected to, so if you want the user to be redirected to contact.php, set the form code to:

    
    <form action="contact.php" etc>
    
    Code (markup):
    Then of course the script for handling the form is on contact.php.

    Is this making sense at all?
     
    jeremyhowell, Jan 7, 2011 IP
  6. pinkytoe

    pinkytoe Member

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #6
    yep, got it now, cheers!
     
    pinkytoe, Jan 7, 2011 IP