hi can somebody help me out i have form that the user need to fill and at the end of the form the use have to make a payment via alert pay which they will be taken to the page buy clicking on the alert pay button but haw can i make the form submit the detail after the payment is done check my form below hope someone can help

<html>
<head>

<script type="text/javascript" src="http://new.bmzweb.com/register/jquery.min.js"></script>

<link rel="stylesheet" type="text/css" href="http://new.bmzweb.com/register/formwizard.css" />

<script src="http://new.bmzweb.com/register/formwizard.js" type="text/javascript">

/***********************************************
* jQuery Form to Form Wizard- (c) Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

</script>

<script type="text/javascript">

var myform=new formtowizard({
	formid: 'feedbackform',
	persistsection: true,
	revealfx: ['slide', 500]
})

</script>
</head>


<body>

<form id="feedbackform" method="post" action="https://www.alertpay.com/checkout" >

<fieldset class="sectionwrap">
<legend>Basic Information</legend>
        	<table>
			<tr>
<td>First Name:</td><td><input type="text" name="fname" id="fname" size="32" maxlength="32" /></td>
			
			</tr>
			
			<tr>
<td>Last Name:</td><td><input type="text" name="lname" id="lname" size="32" maxlength="32" /></td>
</tr>
		<tr>
<td>Date of Birth:</td><td><select size="1" name="dobMonth" id="dobMonth">
                	<option value="Jan">Jan</option>
                    <option value="Feb">Feb</option>
                    <option value="Mar">Mar</option>
                    <option value="Apr">Apr</option>
                    <option value="May">May</option>
                    <option value="Jun">Jun</option>
                    <option value="Jul">Jul</option>
                    <option value="Aug">Aug</option>
                    <option value="Sep">Sep</option>
                    <option value="Oct">Oct</option>
                    <option value="Nov">Nov</option>
                    <option value="Dec">Dec</option>
                </select>
                <select size="1" name="dobDay" id="dobDay">
                	<option value="01">01</option>
                    <option value="02">02</option>
                    <option value="03">03</option>
                    <option value="04">04</option>
                    <option value="05">05</option>
                    <option value="06">06</option>
                    <option value="07">07</option>
                    <option value="08">08</option>
                    <option value="09">09</option>
                    <option value="10">10</option>
                    <option value="11">11</option>
                    <option value="12">12</option>
                    <option value="13">13</option>
                    <option value="14">14</option>
                    <option value="15">15</option>
                    <option value="16">16</option>
                    <option value="17">17</option>
                    <option value="18">18</option>
                    <option value="19">19</option>
                    <option value="20">20</option>
                    <option value="21">21</option>
                    <option value="22">22</option>
                    <option value="23">23</option>
                    <option value="24">24</option>
                    <option value="25">25</option>
                    <option value="26">26</option>
                    <option value="27">27</option>
                    <option value="28">28</option>
                    <option value="29">29</option>
                    <option value="30">30</option>
                    <option value="31">31</option>
                </select>
                <select size="1" name="dobYear" id="dobYear">
                	<option value="2000">2000</option>
                    <option value="1999">1999</option>
                    <option value="1998">1998</option>
                    <option value="1997">1997</option>
                    <option value="1996">1996</option>
                    <option value="1995">1995</option>
					<option value="1994">1994</option>
					<option value="1993">1993</option>
					<option value="1992">1992</option>
					<option value="1991">1991</option>
					<option value="1990">1990</option>
					<option value="1989">1989</option>
					<option value="1988">1988</option>
					<option value="1987">1987</option>
					<option value="1986">1986</option>
					<option value="1985">1985</option>
					<option value="1984">1984</option>
					<option value="1983">1983</option>
					<option value="1982">1982</option>
					<option value="1981">1981</option>
					<option value="1980">1980</option>
					<option value="1979">1979</option>
					<option value="1978">1978</option>
					<option value="1977">1977</option>
					<option value="1976">1976</option>
					<option value="1975">1975</option>
					<option value="1974">1974</option>
					<option value="1973">1973</option>
					<option value="1972">1972</option>
					<option value="1971">1971</option>
					<option value="1970">1970</option>
					<option value="1969">1969</option>
					<option value="1968">1968</option>
					<option value="1967">1967</option>
					<option value="1966">1966</option>
					<option value="1965">1965</option>
					<option value="1964">1964</option>
					<option value="1963">1963</option>
					<option value="1962">1962</option>
					<option value="1961">1961</option>
					<option value="1960">1960</option>
					<option value="1959">1959</option>
					<option value="1958">1958</option>
					<option value="1957">1957</option>
					<option value="1956">1956</option>
					<option value="1955">1955</option>
					<option value="1954">1954</option>
					<option value="1953">1953</option>
					<option value="1952">1952</option>
					<option value="1951">1951</option>
					<option value="1950">1950</option>
                
 <option value="1949">1949</option>
                     
					 <option value="1948">1948</option>
					 
					 <option value="1947">1947</option>
					 
					 <option value="1946">1946</option>
					 
					 <option value="1945">1945</option>
					 
					 <option value="1944">1944</option>
					 
					 <option value="1943">1943</option>
					 
					 <option value="1942">1942</option>
					 
					 <option value="1941>1941</option>
					 
					 <option value="1940">1940</option>
					 
					 <option value="1939">1939</option>
					 
					 <option value="1938">1938</option>
					 
					 <option value="1937">1937</option>
					 
					 <option value="1936">1936</option>
					 
					 <option value="1935">1935</option>
					 
					 <option value="1934">1934</option>
					 
					 <option value="1933">1933</option>
					 
					 <option value="1932">1932</option>
					 
					 <option value="1931">1931</option>
					 
					 <option value="1930">1930</option>
					 
					 <option value="1929">1929</option>
					 
					 <option value="1928">1928</option>
					 
					 <option value="1927">1927</option>
					 
					  <option value="1927">1927</option>

 <option value="1926">1926</option> 
 
 <option value="1925">1925</option> 
 
 <option value="1924">1924</option> 
 
 <option value="1923">1923</option>

 <option value="1922">1922</option>
 
 <option value="1921">1921</option>
 
 <option value="1920">1920</option>
 
 <option value="1919">1919</option>
 
 <option value="1918">1918</option>
 
 <option value="1917">1917</option>
 
 <option value="1916">1916</option>
 
 <option value="1915">1915</option>
 
 <option value="1914">1914</option>
 
 <option value="1913">1913</option>
 
 <option value="1912">1912</option>
 
 <option value="1911">1911</option>
 
 <option value="1910">1910</option>




</select></td>
</tr>	
		<tr>
		<td>Email Address:</td><td><input type="text" name="email" id="email" size="32" maxlength="128" /></td>
		</tr>
<tr>
<td>Referrer Domain:</td><td><input type="text" name="referrer" id="referrer" size="32" maxlength="32" /></td>
			
			</tr>
		</table>
		
		</fieldset>

<fieldset class="sectionwrap">
<legend>Other Information</legend>

<table>
<tr>
<td>Company Name:</td><td><input type="text" name="compname" id="compname" size="32" maxlength="32" /></td>
</tr>
<tr>
<td>Phone Number:</td><td><input type="text" name="tel" id="tel" size="32" maxlength="32" /></td>
</tr>

<tr>
<td>Country:</td><td><select size="1" name="country" id="country">
                	 <option value="Afghanistan"/>Afghanistan
                                                        <option value="Albania"/>Albania
                                                        <option value="Algeria"/>Algeria
                                                        <option value="AmericanSamoa"/>American Samoa
                                                        <option value="Andorra"/>Andorra
                                                        <option value="Angola"/>Angola
                                                        <option value="Anguilla"/>Anguilla
                                                        <option value="Antarctica"/>Antigua and Barbuda
                                                        <option value="Argentina"/>Argentina
                                                        <option value="Armenia"/>Armenia
                                                        <option value="Aruba"/>Aruba
                                                        <option value="Australia"/>Australia
                                                        <option value="Austria"/>Austria
                                                        <option value="Azerbaijan"/>Azerbaijan
                                                        <option value="Bahamas"/>Bahamas
                                                        <option value="Bahrain"/>Bahrain
                                                        <option value="Bangladesh"/>Bangladesh
                                                        <option value="Barbados"/>Barbados
                                                        <option value="Belarus"/>Belarus
                                                        <option value="Belgium"/>Belgium
                                                        <option value="Belize"/>Belize
                                                        <option value="Benin"/>Benin
                                                        <option value="Bermuda"/>Bermuda
                                                        <option value="Bhutan"/>Bhutan
                                                        <option value="Bolivia"/>Bolivia
                                                        <option value="BosniaandHerzegovina"/>Bosnia and Herzegovina
                                                        <option value="Botswana"/>Botswana
                                                        <option value="BouvetIsland"/>Bouvet Island
                                                        <option value="Brazil"/>Brazil
                                                        <option value="BritishIndianOceanTerritories"/>British Indian Ocean
                                                        Territories
                                                        <option value="BruneiDarussalam"/>Brunei Darussalam
                                                        <option value="Bulgaria"/>Bulgaria
                                                        <option value="BurkinaFaso"/>Burkina Faso
                                                        <option value="Burundi"/>Burundi
                                                        <option value="Cambodia"/>Cambodia
                                                        <option value="Cameroon"/>Cameroon
                                                        <option value="Canada"/>Canada
                                                        <option value="CapeVerde"/>CapeVerde
                                                        <option value="CaymanIslands"/>Cayman Islands
                                                        <option value="CentralAfricanRepublic"/>Central African Republic
                                                        <option value="Chad"/>Chad
                                                        <option value="Chile"/>Chile
                                                        <option value="China"/>China
                                                        <option value="ChristmasIsland"/>Christmas Island
                                                        <option value="CocosIslands"/>Cocos Islands
                                                        <option value="Colombia"/>Colombia
                                                        <option value="Comoros"/>Comoros
                                                        <option value="Congo"/>Congo
                                                        <option value="DemocraticRepublicofCongo"/>Democratic Republic of
                                                        Congo
                                                        <option value="CookIslands"/>Cook Islands
                                                        <option value="CostaRica"/>Costa Rica
                                                        <option value="CoteD\'ivoire"/>Ivory Coast
                                                        <option value="Croatia"/>Croatia
                                                        <option value="Cuba"/>Cuba
                                                        <option value="Cyprus"/>Cyprus
                                                        <option value="CzechRepublic"/>Czech Republic
                                                        <option value="Denmark"/>Denmark
                                                        <option value="Djibouti"/>Djibouti
                                                        <option value="Dominica"/>Dominica
                                                        <option value="DominicanRepublic"/>Dominican Republic
                                                        <option value="EastTimor"/>East Timor
                                                        <option value="Ecuador"/>Ecuador
                                                        <option value="Egypt"/>Egypt
                                                        <option value="ElSalvador"/>El Salvador
                                                        <option value="EquatorialGuinea"/>Equatorial Guinea
                                                        <option value="Eritrea"/>Eritrea
                                                        <option value="Estonia"/>Estonia
                                                        <option value="Ethiopia"/>Ethiopia
                                                        <option value="FalklandIslands"/>Falkland Islands
                                                        <option value="FaroeIslands"/>Faroe Islands
                                                        <option value="Fiji"/>Fiji
                                                        <option value="Finland"/>Finland
                                                        <option value="France"/>France
                                                        <option value="FrenchGuiana"/>French Guiana
                                                        <option value="FrenchPolynesia"/>French Polynesia
                                                        <option value="Gabon"/>Gabon
                                                        <option value="Gambia"/>Gambia
                                                        <option value="Georgia"/>Georgia
                                                        <option value="Germany"/>Germany
                                                        <option value="Ghana"/>Ghana
                                                        <option value="Gibraltar"/>Gibraltar
                                                        <option value="Greece"/>Greece
                                                        <option value="Greenland"/>Greenland
                                                        <option value="Grenada"/>Grenada
                                                        <option value="HungaryGuadeloupe"/>Guadeloupe
                                                        <option value="Guam"/>Guam
                                                        <option value="Guatemala"/>Guatemala
                                                        <option value="Guinea"/>Guinea
                                                        <option value="Guyana"/>Guyana
                                                        <option value="Haiti"/>Haiti
                                                        <option value="Honduras"/>Honduras
                                                        <option value="HongKong"/>Hong Kong
                                                        <option value="Hungary"/>Hungary
                                                        <option value="Iceland"/>Iceland
                                                        <option value="India"/>India
                                                        <option value="Indonesia"/>Indonesia
                                                        <option value="Iran"/>Iran
                                                        <option value="Iraq"/>Iraq
                                                        <option value="Ireland"/>Ireland
                                                        <option value="Israel"/>Israel
                                                        <option value="Italy"/>Italy
                                                        <option value="Jamaica"/>Jamaica
                                                        <option value="Japan"/>Japan
                                                        <option value="Jordan"/>Jordan
                                                        <option value="Kazakhstan"/>Kazakhstan
                                                        <option value="Kenya"/>Kenya
                                                        <option value="Kiribati"/>Kiribati
                                                        <option value="RepublicofKorea"/>Republic of Korea
                                                        <option value="Kuwait"/>Kuwait
                                                        <option value="Kyrgyzstan"/>Kyrgyzstan
                                                        <option value="LaoPeoplesDemocraticRepublic"/>Lao Peoples Democratic Republic
                                                        <option value="Latvia"/>Latvia
                                                        <option value="Lebanon"/>Lebanon
                                                        <option value="Lesotho"/>Lesotho
                                                        <option value="Liberia"/>Liberia
                                                        <option value="LibyanArabJamahiriya"/>Libyan Arab Jamahiriya
                                                        <option value="Liechtenstein"/>Liechtenstein
                                                        <option value="Lithuania"/>Lithuania
                                                        <option value="Luxembourg"/>Luxembourg
                                                        <option value="Macau"/>Macau
                                                        <option value="Macedonia"/>Macedonia
                                                        <option value="Madagascar"/>Madagascar
                                                        <option value="Malawi"/>Malawi
                                                        <option value="Malaysia"/>Malaysia
                                                        <option value="Maldives"/>Maldives
                                                        <option value="Mali"/>Mali
                                                        <option value="Malta"/>Malta
                                                        <option value="MarshallIslands"/>Marshall Islands
                                                        <option value="Martinique"/>Martinique
                                                        <option value="Mauritania"/>Mauritania
                                                        <option value="Mauritius"/>Mauritius
                                                        <option value="Mayotte"/>Mayotte
                                                        <option value="Mexico"/>Mexico
                                                        <option value="Micronesia"/>Micronesia
                                                        <option value="Moldova"/>Moldova
                                                        <option value="Monaco"/>Monaco
                                                        <option value="Mongolia"/>Mongolia
                                                        <option value="Montserrat"/>Montserrat
                                                        <option value="Morocco"/>Morocco
                                                        <option value="Mozambique"/>Mozambique
                                                        <option value="Myanmar"/>Myanmar
                                                        <option value="Namibia"/>Namibia
                                                        <option value="Nauru"/>Nauru
                                                        <option value="Nepal"/>Nepal
                                                        <option value="Netherlands"/>Netherlands
                                                        <option value="NetherlandsAntilles"/>Netherlands Antilles
                                                        <option value="NewCaledonia"/>New Caledonia
                                                        <option value="NewZealand"/>New Zealand
                                                        <option value="Nicaragua"/>Nicaragua
                                                        <option value="Niger"/>Niger
                                                        <option value="Nigeria"/>Nigeria
                                                        <option value="Niue"/>Niue
                                                        <option value="NorfolkIsland"/>Norfolk Island
                                                        <option value="NorthernMarianaIslands"/>Northern Mariana Islands
                                                        <option value="Norway"/>Norway
                                                        <option value="Oman"/>Oman
                                                        <option value="Pakistan"/>Pakistan
                                                        <option value="Palau"/>Palau
                                                        <option value="Panama"/>Panama
                                                        <option value="PapuaNewGuinea"/>Papua New Guinea
                                                        <option value="Paraguay"/>Paraguay
                                                        <option value="Peru"/>Peru
                                                        <option value="Philippines"/>Philippines
                                                        <option value="Pitcairn"/>Pitcairn
                                                        <option value="Poland"/>Poland
                                                        <option value="Portugal"/>Portugal
                                                        <option value="PuertoRico"/>Puerto Rico
                                                        <option value="Qatar"/>Qatar
                                                        <option value="Reunion"/>Reunion
                                                        <option value="Romania"/>Romania
                                                        <option value="RussianFederation"/>Russian Federation
                                                        <option value="Rwanda"/>Rwanda
                                                        <option value="SaintHelena"/>Saint Helena
                                                        <option value="SaintKittsandNevis"/>Saint Kitts and Nevis
                                                        <option value="SaintLucia"/>Saint Lucia
                                                        <option value="SaintPierreandMiquelon"/>Saint Pierre and Miquelon
                                                        <option value="SaintVincentandTheGrenadines"/>Saint Vincent and The Grenadines
                                                        <option value="Samoa"/>Samoa
                                                        <option value="SanMarino"/>San Marino
                                                        <option value="SaoTomeandPrincipe"/>Sao Tome and Principe
                                                        <option value="SaudiArabia"/>Saudi Arabia
                                                        <option value="Senegal"/>Senegal
                                                        <option value="Seychelles"/>Seychelles
                                                        <option value="SierraLeone"/>Sierra Leone
                                                        <option value="Singapore"/>Singapore
                                                        <option value="Slovakia"/>Slovakia
                                                        <option value="Slovenia"/>Slovenia
                                                        <option value="SolomonIslands"/>Solomon Islands
                                                        <option value="Somalia"/>Somalia
                                                        <option value="SouthAfrica"/>South Africa
                                                        <option value="SouthGeorgiaandSandwichIsland"/>South Georgia and Sandwich Island
                                                        <option value="Spain"/>Spain
                                                        <option value="SriLanka"/>Sri Lanka
                                                        <option value="Sudan"/>Sudan
                                                        <option value="Swaziland"/>Swaziland
                                                        <option value="Sweden"/>Sweden
                                                        <option value="Switzerland"/>Switzerland
                                                        <option value="SyrianArabRepublic"/>Syrian Arab Republic
                                                        <option value="Taiwan"/>Taiwan
                                                        <option value="Tajikistan"/>Tajikistan
                                                        <option value="Tanzania"/>Tanzania
                                                        <option value="Thailand"/>Thailand
                                                        <option value="Togo"/>Togo
                                                        <option value="Tokelau"/>Tokelau
                                                        <option value="Tonga"/>Tonga
                                                        <option value="TrinidadandTobago"/>Trinidad and Tobago
                                                        <option value="Tunisia"/>Tunisia
                                                        <option value="Turkey"/>Turkey
                                                        <option value="Turkmenistan"/>Turkmenistan
                                                        <option value="Tuvalu"/>Tuvalu
                                                        <option value="Uganda"/>Uganda
                                                        <option value="Ukraine"/>Ukraine
                                                        <option value="UnitedArabEmirates"/>United Arab Emirates
                                                        <option value="UnitedKingdom"/>United Kingdom
                                                        <option value="Uruguay"/>Uruguay
                                                        <option value="USA"selected/>USA
                                                        <option value="Uzbekistan"/>Uzbekistan
                                                        <option value="Vanuatu"/>Vanuatu
                                                        <option value="Venezuela"/>Venezuela
                                                        <option value="Vietnam"/>Vietnam
                                                        <option value="VirginIslands(British)"/>Virgin Islands (British)
                                                        <option value="VirginIslands(U.S.)"/>Virgin Islands(U.S.)
                                                        <option value="WallisAndFutunaIslands"/>Wallis And Futuna Islands
                                                        <option value="WesternSahara"/>Western Sahara
                                                        <option value="Yemen"/>Yemen
                                                        <option value="Yugoslavia"/>Yugoslavia
                                                        <option value="Zaire"/>Zaire
                                                        <option value="Zambia"/>Zambia
                                                        <option value="Zimbabwe"/>Zimbabwe
                </select>
				</td>
				</tr>

<tr>

<td>city:</td><td><input type="text" name="city" id="city" size="32" maxlength="32" /></td>
			
			</tr>
			<tr>
			
<td>State:</td><td><input type="text" name="state" id="state" size="32" maxlength="32" /></td>
			
			</tr>
			<tr>
<td>Postal/Zip Code:</td><td><input type="text" name="pzcode" id="pzcode" size="32" maxlength="32" /></td>

</tr>

</table>
</fieldset>

<fieldset class="sectionwrap">
<legend>Setup your website</legend>

<table>

<tr>
<th colspan="2" align="left"> Please choose a domain name for your new website  [?]</th>
</tr>

<tr>
<td > Domain Name:<input type="text" name="domian" id="domain" size="32" maxlength="32" /></td><td><select size="1" name="domainext" id="domainext">
                	<option value="com">.com</option>
                    <option value="net">.net</option>
                    <option value="org">.org</option>
                    <option value="info">.info</option>
                    <option value="biz">.biz</option>
                    <option value="me">.me</option>
                    
                </select>    </td>
			
   </tr>
		<tr>
		<th colspan="2" align="left">Please provide at lease three email address for you new account.</th>
		
		</tr>
		
		<tr>
		
<td colspan="2">Email 1:<input type="text" name="newemail1" id="newemail1" size="32" maxlength="32" /></td>

</tr>

<tr>
			
<td colspan="2">Email 2:<input type="text" name="newemail2" id="newemail2" size="32" maxlength="32" /></td>

</tr>
			<tr>
<td colspan="2">Email 3:<input type="text" name="newemail3" id="newemail3" size="32" maxlength="32" </td>
</tr>
<tr>
			
<td colspan="2">Email 4:<input type="text" name="newemail4" id="newemail4" size="32" maxlength="32" /></td>

</tr>
			<tr>
<td colspan="2">Email 5:<input type="text" name="newemail5" id="newemail5" size="32" maxlength="32" /></td>

</tr>
</table>
</fieldset>

<fieldset class="sectionwrap">
<legend>Terms and Conditions </legend>
 <table>
 <tr>
 <td>
<textarea rows="8" cols="60" readonly="value"  >

1.The BMZ Web Premium Package consists of five (5) pages, where contents should be filled by the Applicant with template provided.

2.The BMZ Web Premium Package member will receive five (5) email addresses.

3.The BMZ Web Premium Package includes hosting, domain and site builder.

4.The BMZ Web Premium Package is valid for one (1) year.

5.The domain names for the BMZ Web Premium Package are “.com, .info, .org, .net, .biz and .me” only.

6.The selling price of the BMZ Web Premium Package is 50 US$/- (American Dollars) and is non-refundable.

7.Delivery of the BMZ Web Premium Package will be effected within five to fifteen days.

8.The Applicant agrees to receive info, mail, email, newsletters, sms and brochures.

9.Applicant’s proposed website and email address(es) will be allocated subject to availability. Should Applicant’s proposed address(es) not be available, other address(es) will be allocated to him/her.

10.The Applicant agrees that the Company will not be held responsible for any disagreement in terms of   payment(s) which is/are not done directly at the Company’s Head Office, e.g. payments effected through Independent Agent(s).

11.The Company will send an Official Receipt  (computer generated) on the Applicant’s email address for cashed payment as Purchase Proof.

12.The Applicant unconditionally guarantees that any elements of text, graphics, photos, designs or other artwork published by himself/herself on his/her website are owned by the Applicant, or he/she has the permission from the rightful owner of these elements, and will hold harmless, protect, indemnify and defend BMZ International Ltd and its directors from any liability, including any claim or suit, threatened or actual, arising from the use of such elements published by the Applicant.

13.The Applicant agrees that he or she is solely responsible for complying with any laws, taxes and tariffs applicable in any way to his/her website or any services contemplated herein and will hold harmless BMZ International Ltd and its directors from any claim whatsoever arising from the Applicant’s exercise of e-commerce and or/failure with any such laws, taxes and tariffs.

14.The Applicant is responsible for complying with all laws for their jurisdiction, as well as the regulations of the Republic of Mauritius.
</textarea>
</td>
</tr>
<tr>
<td>
I accept the following Terms & Conditions <input type="checkbox" name="terms" value="terms" > 
</td>
</tr>
</table>
</fieldset>







<fieldset class="sectionwrap">
<legend>Check Out</legend>

   	<table id="table" align="center" width="460px" height="140"> 
       <tr> 
                <th><h3>Description</h3></th> 
                <th></th> 
                <th><h3 id="InvoiceNameOfProduct">Premium Website Package</h3></th> 
            </tr> 
            <tr> 
                <th bgcolor="#CCFFFF"><p>Unit Price</p></th> 
                <th bgcolor="#CCFFFF"></th> 
                <th bgcolor="#CCFFFF"><p id="UnitPrice">50 $USD</p></th> 
            </tr> 
            
             
            
             
            <tr> 
                <th bgcolor="#CCFFFF"><p>Subtotal</p></th> 
                <th bgcolor="#CCFFFF"></th> 
                <th bgcolor="#CCFFFF"><p id="subTotalPrice">50 $USD</p></th> 
            </tr> 
            
           
            
             
            <tr class="totalPriceRow"> 
                <th bgcolor="#CCFFFF"></th> 
                <th bgcolor="#CCFFFF"><p>Total</p></th> 
                <th bgcolor="#CCFFFF"> <p id="totalFinalPrice" >50 $USD</p></th> 
            </tr> 
			
			
			<tr>
			<td colspan="3" align="center"><input type="hidden" name="ap_productid" value="1IX4MAZJJJhLFSrR2DbHnQ=="/> <input type="hidden" name="ap_quantity" value="1"/> <input type="image" name="ap_image" src="https://www.alertpay.com//PayNow/A24CB2D32BA64C5B83A00745ACEEF1FFb0en.gif"/> </td>
			</tr>
        </table
        </fieldset>
</form>
</body>
</html>

some one please help me out im really desperate any suggestion will be a great help.

when you are submitting your form then redirect it to one page called insert.php,
then redirect to https://www.alertpay.com/checkout".
just like this:

<form id="feedbackform" method="post" action="insert.php" >

in insert.php

// getting form values
//inserting code
// form
<script>
document.feedbackform.submit();
</script>
<form id="feedbackform" method="post" action="https://www.alertpay.com/checkout" >
// put required fields in hidden variable

</form>

so i should redirect my form to the insert.php?.what i really want to do is when the payment is successful via alertpay site the detail the user has fill in the form will be send to an email address if the payment is not successful the discard the data the user has fill in the form.

before going to alertpayment page ,you just insert all data in your database with flag 0.
if payment is successfull in alertpayament, then redirect to success.php page in your website, in that success.php you just write code to make that inserted row flag to 1.then write code to email these details.
if payment is not successfull in alertpayament,then redirect it to failure.php page.
then delete the inserted data or leave that with flag 0.

the rows with flag 1 are meant to your successful transcations.

do i really have to submit the form data to a database or can i store it in some kind of variable and can i at lease get a sample of the code for the success.php file so i can customize it to my need cause im a bit lost.

do i really have to submit the form data to a database or can i store it in some kind of variable

Yes.
if we stored all the data in some global variable,while payment or after payment if close our website, all the data set will be lost even if successfully done payment.

at lease get a sample of the code for the success.php file

i don't have any examples with me.
try to code like:
- a query to make inserted row flag with 1.
user customer if to find proper row which cam through success.php
- emailing functionality.
First try it and post here if you have any more queries.

there are many ways - you could add it to your database with flag 0 , alternatively if payment site be opened in a pop up and when it is done it redirects to your page .

one thing im not getting is the flag stuff ok i insert the detail of the form in my database before redirecting it to the payment page after payment if its successful it will redirect to success.php which will fetch everthing from the database and email its is that the way its suppose to work? and after payment is complete and the email with the detail is send do i have to manually delete the temp store data in the database or im i just in the dark here?

i have to manually delete the temp store data in the database

you just write a query to delete unsuccessful transactions like:

$q="delete from table name where flag=0";

put this query before going to alertpayment.php
then all unsuccessful transactions will be deleted on regular basis.

so please clear this out for me i need to use the flag as a true / false and one ive create the flag in my db, in my script i need to use case to control the flag to know which action to take?and one thing how do i make the script to insert the flag automatically because normally after everything is inserted in the db and iv been redirected to alerpay payment page. the site will do the redirection for if the payment is successful or not so how do i control that?

what im trying to say is iv never use flag before and im wondering how do i implement it?

hmm
here all we have to work with queries only.
first alter your table with flag like:

ALTER TABLE `table_name` ADD `flag` TINYINT NOT NULL DEFAULT '0';

then in insert.php page, your insert query should be like:

$q="insert into tablename ('','','','flag')values('','','',1)";

means here you insert the flag as 1 along with transaction information.because you don't know whether it will be success or fail.
and in your success.php, update your table row like:

update table name set flag=0 where primarykey=key;

then it means if flag=0 then it is your successful transaction.
and in payment page write this query to delete all unsuccessful payments:

$q="delete from table name where flag=0";

or just post your code for clear information.
thanks.

i dont know if this is the right way to do it but what i understand was the the code may look a bit like this but ive never use flag so dont know where to implement it check thje code below

<?php

defined( '_JEXEC' ) or die( 'Restricted access' );

inclued ('configuration.php');


$fname = $_POST["fname"];
$lname = $_POST["lname"];
$dobMonth =$_POST["dobMonth"];
$dobDay =$_POST["dobDay"];
$dobMonth =$_POST["dobYear"];
$email=$_POST["email"];
$referrer =$_POST["referrer"];

$compname=$_POST["compname"];
$tel=$_POST["tel"];
$country=$_POST["country"];
$city=$_POST["city"];
$state=$_POST["state"];
$pzcode=$_POST["pzcode"];

$domain=$_POST["domain"];
$domainext=$_POST["domainext"];
$newemail1=$_POST["newemail1"];
$newemail2=$_POST["newemail2"];
$newemail3=$_POST["newemail3"];
$newemail4=$_POST["newemail4"];
$newemail1=$_POST["newemail5"];





//validate date of birth


if ($dobMonth != '' && $dobDay != '' && $dobYear != '') {
  // Generate date of birth in format of mm-dd-yyyy
  $DOB = $dobMonth.'-'.$dobDay .'-'.$dobYear;

}


//validate domain 


if ($domain != '' && $domainext != '') {
  // Generate domain name
  $DOname = $domain.'-'.$dobDay;

}


$query="INSERT INTO regdata  VALUES  

('$fname','$lname','$DOB','$email','$referrer','$compname', '$tel','$country','$city','$state','$pzcode', '$DOname','$newemail1','$newemail2','$newemail3','$newemail4','$newemail5')";


?>


<script>
document.feedbackform.submit();
</script>
<form id="feedbackform" method="post" action="https://www.alertpay.com/checkout" >
// put required fields in hidden variable
 
</form>





















?>

the code above is the insert.php page.
but one thing is that i dont controll the payment page after pressing the buy now button if will take the user to alertpay site to make the payment then if sucessful or not you define to two url to redirect to.so i should add the code

$q="delete from table name where flag=0";

to my sucess.php file or fail.php?because fail or successful we need to remove the data in the table.

so i should add the code
PHP Syntax (Toggle Plain Text)

1.
$q="delete from table name where flag=0";

$q="delete from table name where flag=0";
to my sucess.php file or fail.php?

No you just add the above query in the page from which we are going to payment page.not in success.php or fail.php pages.

so we insert

$q="delete from table name where flag=0";

inside insert.php

so is the code below correct

<?php

defined( '_JEXEC' ) or die( 'Restricted access' );

inclued ('configuration.php');


$fname = $_POST["fname"];
$lname = $_POST["lname"];
$dobMonth =$_POST["dobMonth"];
$dobDay =$_POST["dobDay"];
$dobMonth =$_POST["dobYear"];
$email=$_POST["email"];
$referrer =$_POST["referrer"];

$compname=$_POST["compname"];
$tel=$_POST["tel"];
$country=$_POST["country"];
$city=$_POST["city"];
$state=$_POST["state"];
$pzcode=$_POST["pzcode"];

$domain=$_POST["domain"];
$domainext=$_POST["domainext"];
$newemail1=$_POST["newemail1"];
$newemail2=$_POST["newemail2"];
$newemail3=$_POST["newemail3"];
$newemail4=$_POST["newemail4"];
$newemail1=$_POST["newemail5"];





//validate date of birth


if ($dobMonth != '' && $dobDay != '' && $dobYear != '') {
  // Generate date of birth in format of mm-dd-yyyy
  $DOB = $dobMonth.'-'.$dobDay .'-'.$dobYear;

}


//validate domain 


if ($domain != '' && $domainext != '') {
  // Generate domain name
  $DOname = $domain.'-'.$dobDay;

}


$query="INSERT INTO regdata 

('Firstname','Lastname','DOB','Email','Refferer','Company','Tel','Country','City','Sate','Postnzip','Domainname','Newemail1','Newemail2','Newemail3','Newemail4','Newemail5','flag') 

VALUES  

('$fname','$lname','$DOB','$email','$referrer','$compname', '$tel','$country','$city','$state','$pzcode', '$DOname','$newemail1','$newemail2','$newemail3','$newemail4','$newemail5','1')";


?>

<?php

$query="delete from table name where flag=0";

?>


<script>
document.feedbackform.submit();
</script>
<form id="feedbackform" method="post" action="https://www.alertpay.com/checkout" >
<input type="hidden" name="ap_productid" value="1IX4MAZJJJhLFSrR2DbHnQ=="/>
 <input type="hidden" name="ap_quantity" value="1"/>
 </form>

one thing if i insert

$query="delete from table name where flag=0";

inside insert.php wouldnt that just delete everyting inside our table we have just inserted on submiting the form?

one more thing im forgetting is that i need to email the details collected in our database to an email address if the payment is successful before deleting it from the table so i guess i could get a script to fetch everthing from table and email it before delete inside success.php

inside insert.php wouldnt that just delete everyting inside our table we have just inserted on submiting the form?

flag=0 means unsuccessful transactions.

$q="insert into tablename ('','','','flag')values('','','',1)";

by this query , you will have flag 1 for all successful transactions.
So, no worry about unsuccessful transactions.

Don't run email code when transaction is unsuccessful.
Means if control went through success.php , means transaction is success.
and email that particular users details not all details.

i tested the code and its not working its not inserting the data in database nor is it redirecting me to the payment page.

one thing should my form.php file be in the same directory as my insert.php?

because the form is inside a joomla html module and i cant find it relative path and theres no url to it you can see how the form is on

http://www.bmzweb.com/new/index.php?option=com_content&view=article&id=50

normally when the form post it send ever detail to the action file or my insert.php need to be able to access the form file to extract each field?

hi i please check the query above and let me know what can be wrong because its not working when i try it its not inserting the query in my database

i tested the code and its not working its not inserting the data in database nor is it redirecting me to the payment page.

check your form action ,what is the redirect page name you have written there.If it is alertpayment.php page then change it to insert.php.

one thing should my form.php file be in the same directory as my insert.php?

off course, if your page is in other directory, you can give clear path of that page.

it is redirecting to the insert.php but its not inserting the form data inside my database nor is it redirecting me to the laertpay page.when it redirect i get a blank screen on insert.php so my guess is that theres somthing wrong in the insert.php.

I have just given you an idea not exact code.
Then try yourself for the error like:
try to trace out the where is the error.
Means put echo for all posted data,
next echo the query and execute the query in PHPMYAdmin.
or post your entire code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.