Activity Stream
48,167 MEMBERS
61073 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 4 of 4
  1.     
    #1
    Member
    Website's:
    porndex.eu massprchecker.com

    Default Form send function

    I have just used one of those free form builders, and have the following output:

    Code: 
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Job Application</title>
    <link rel="stylesheet" type="text/css" href="view.css" media="all">
    <script type="text/javascript" src="view.js"></script>
    
    </head>
    <body id="main_body" >
    	
    	<img id="top" src="top.png" alt="">
    	<div id="form_container">
    	
    		<h1><a>Job Application</a></h1>
    		<form id="form_505287" class="appnitro"  method="post" action="">
    					<div class="form_description">
    			<h2>Job Application</h2>
    			<p>Please fill all fields in.</p>
    		</div>						
    			<ul >
    			
    					<li id="li_1" >
    		<label class="description" for="element_1">Name </label>
    		<span>
    			<input id="element_1_1" name= "element_1_1" class="element text" maxlength="255" size="8" value=""/>
    			<label>First</label>
    		</span>
    		<span>
    			<input id="element_1_2" name= "element_1_2" class="element text" maxlength="255" size="14" value=""/>
    			<label>Last</label>
    		</span> 
    		</li>		<li id="li_2" >
    		<label class="description" for="element_2">Address </label>
    		
    		<div>
    			<input id="element_2_1" name="element_2_1" class="element text large" value="" type="text">
    			<label for="element_2_1">Street Address</label>
    		</div>
    	
    		<div>
    			<input id="element_2_2" name="element_2_2" class="element text large" value="" type="text">
    			<label for="element_2_2">Address Line 2</label>
    		</div>
    	
    		<div class="left">
    			<input id="element_2_3" name="element_2_3" class="element text medium" value="" type="text">
    			<label for="element_2_3">City</label>
    		</div>
    	
    		<div class="right">
    			<input id="element_2_4" name="element_2_4" class="element text medium" value="" type="text">
    			<label for="element_2_4">State / Province / Region</label>
    		</div>
    	
    		<div class="left">
    			<input id="element_2_5" name="element_2_5" class="element text medium" maxlength="15" value="" type="text">
    			<label for="element_2_5">Postal / Zip Code</label>
    		</div>
    	
    		<div class="right">
    			<select class="element select medium" id="element_2_6" name="element_2_6"> 
    			<option value="" selected="selected"></option>
    
    <option value="United Kingdom" >United Kingdom</option>
    
    	
    			</select>
    		<label for="element_2_6">Country</label>
    	</div> 
    		</li>		<li id="li_3" >
    		<label class="description" for="element_3">Phone </label>
    		<div>
    			<input id="element_3" name="element_3" class="element text medium" type="text" maxlength="255" value=""/> 
    		</div> 
    		</li>		<li id="li_4" >
    		<label class="description" for="element_4">Email </label>
    		<div>
    			<input id="element_4" name="element_4" class="element text medium" type="text" maxlength="255" value=""/> 
    		</div> 
    		</li>		<li id="li_7" >
    		<label class="description" for="element_7">CIS </label>
    		<span>
    			<input id="element_7_1" name="element_7_1" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_7_1">Yes</label>
    <input id="element_7_2" name="element_7_2" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_7_2">No</label>
    
    		</span> 
    		</li>		<li id="li_8" >
    		<label class="description" for="element_8">CSCS </label>
    		<span>
    			<input id="element_8_1" name="element_8_1" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_8_1">Yes</label>
    <input id="element_8_2" name="element_8_2" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_8_2">No</label>
    
    		</span> 
    		</li>		<li id="li_9" >
    		<label class="description" for="element_9">Can you hang wallpaper </label>
    		<span>
    			<input id="element_9_1" name="element_9_1" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_9_1">Yes</label>
    <input id="element_9_2" name="element_9_2" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_9_2">No</label>
    
    		</span> 
    		</li>		<li id="li_10" >
    		<label class="description" for="element_10">Own transport </label>
    		<span>
    			<input id="element_10_1" name="element_10_1" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_10_1">Yes</label>
    <input id="element_10_2" name="element_10_2" class="element checkbox" type="checkbox" value="1" />
    <label class="choice" for="element_10_2">No</label>
    
    		</span> 
    		</li>		<li id="li_5" >
    		<label class="description" for="element_5">Experience </label>
    		<div>
    			<textarea id="element_5" name="element_5" class="element textarea medium"></textarea> 
    		</div> 
    		</li>		<li id="li_6" >
    		<label class="description" for="element_6">Other information you think will be useful </label>
    		<div>
    			<textarea id="element_6" name="element_6" class="element textarea medium"></textarea> 
    		</div> 
    		</li>
    			
    					<li class="buttons">
    			    <input type="hidden" name="form_id" value="505287" />
    			    
    				<input id="saveForm" class="button_text" type="submit" name="submit" value="Submit" />
    		</li>
    			</ul>
    		</form>	
    		<div id="footer">
    			Generated by <a href="http://www.phpform.org">pForm</a>
    		</div>
    	</div>
    	<img id="bottom" src="bottom.png" alt="">
    	</body>
    </html>
    How do i get it to post the results to my email, and redirect to a TY page ?

    Cheers
    RR
    roadrunner Reviewed by roadrunner on . Form send function I have just used one of those free form builders, and have the following output: <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Job Application</title> <link rel="stylesheet" type="text/css" href="view.css" media="all"> <script type="text/javascript" src="view.js"></script> </head> <body id="main_body" > Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    HenchFile.com
    Change:
    Code: 
    <form id="form_505287" class="appnitro"  method="post" action="">
    to:
    Code: 
    <form id="form_505287" class="appnitro"  method="post" action="process.php">
    then create process.php and put this code into it:

    Code: 
    <?php
    if ($_POST)
    {
    $email = '';
    foreach ($_POST as $k => $v)
     {
    $email .= $k . " = " . $v . "\n\n";
     }
    
    mail('YOUREMAILADDRESSHERE', 'Someone submitted the form', $email);
    
    echo "Thank you for contacting us";
    }
    
    {
    echo "Sorry you did not submit the form";
    }
    
    ?>
    Something like that, please note that this has not been tested and is a very basic way of doing what you're trying to achieve.
    Andrew Storey
    HenchFile.com

  4.     
    #3
    Member
    Website's:
    porndex.eu massprchecker.com
    Thats great, i added a simple meta refresh after the "Thanks" for a redirect back to my site, and the email arrived with the submitted form

    Much Appreciated cheers

    RR

  5.     
    #4
    Probation
    Website's:
    swooshleads.com
    You should really be using
    PHP Code: 
    if(isset($_POST['form_id']) && ($_POST['form_id'] == "505287"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Hello form Mihai
    By media in forum Introductions
    Replies: 11
    Last Post: 21st Nov 2010, 10:39 AM
  2. Replies: 1
    Last Post: 29th Sep 2010, 05:15 PM
  3. Looking for a Mass Contacts importer then send send an email
    By TheTorrentSeller in forum vBulletin
    Replies: 2
    Last Post: 18th Dec 2009, 03:16 PM
  4. Form Data Help
    By Gavo in forum Web Application/Script Support
    Replies: 2
    Last Post: 10th Oct 2009, 07:26 PM
  5. Login form.
    By Sl!M in forum vBulletin
    Replies: 2
    Last Post: 20th Aug 2009, 07:39 PM

Tags for this Thread

BE SOCIAL