ID Element nach Success komplette Seite weiter leiten nach url X

d9rv

Grünschnabel
Hallo Leute,

ich habe ein Wizard Form. Das so aufgebaut ist:

HTML:
						<form action="#" id="wizard_form">
							<input type="hidden" value="<?php echo($order_amount); ?>" name="amount">
							<ul id="status" class="cf">
								<li class="active"><span class="large">1. Credit Card Data</span></li>
								<li><span class="large">2. Contact Information</span></li>
								<li><span class="large">3. Payment Finalize</span></li>
							</ul>

							<div id="wizard">
								<div class="items formEl_a">
									<div class="page">
										<div class="pageInside">
											<div class="cf">
												<div class="dp25">
													<h3 class="sepH_a">Strong Security</h3>
													<p class="s_color small">Plase fill out the complet Formular. Your Data is Secured by a 256-bit SSL encryption.</p>
												</div>

												<div class="dp75">
													<div class="w_main_col">
														<div class="form_errors" style="display:none"></div>
														<div class="sepH_b">
															<label class="lbl_a"><strong>1.</strong> Credit Card Number <span class="req">*</span></label>
															<input type="text" class="inpt_a validate" name="creditcard" id="creditcard" />
															<span class="f_help">Please enter your Credit Card Number.</span>
														</div>
														<div class="sepH_b">
															<label class="lbl_a"><strong>2.</strong> Credit Card Expiry Date <span class="req">*</span></label>
															<input type="text" class="inpt_a validate" name="month" id="month" />										
															<span class="f_help">Please enter the Expiry Date Month as sample 01 for January.</span>
															<input type="text" class="inpt_a validate" name="year" id="year" />
															<span class="f_help">Please enter the Expiry Date Year as sample 13 for 2013.</span>
														</div>
														<div class="sepH_c">
															<label class="lbl_a"><strong>3.</strong> CVV or CV2 <span class="req">*</span></label>
															<input type="password" class="inpt_a validate" name="cvv" id="cvv"/>
															<span class="f_help">Please enter your CVV or CV2 security Code.</span>
														</div>
														<div class="cf">
															<a href="javascript:void(0)" class="fr next btn btn_d">Proceed &raquo;</a>
														</div>
													</div>
												</div>
											</div>
										</div>
									</div>

									<div class="page">
										<div class="pageInside">
											<div class="form_errors" style="display:none"></div>
											<div class="cf">
												<div class="dp25">
													<h3 class="sepH_a">Contact Information</h3>
													<p class="s_color small">Plase fill out the complet Formular. Your Data is Secured by a 256-bit SSL encryption.</p>
												</div>
												<div class="dp75">
													<div class="w_main_col">
														<div class="sepH_b ">
															<label class="lbl_a"><strong>1.</strong> First name <span class="req">*</span></label>
															<input type="text" class="inpt_a validate" name="firstname" id="firstname" />
															<span class="f_help">Please enter your First name.</span>
														</div>
														<div class="sepH_b ">
															<label class="lbl_a"><strong>2.</strong> Last name <span class="req">*</span></label>
															<input type="text" class="inpt_a validate" name="lastname" id="lastname" />
															<span class="f_help">Please enter your Last name.</span>
														</div>																											
														<div class="cf">
															<a href="javascript:void(0)" class="fl prev btn btn_a">&laquo; Back</a>
															<button type="submit" class="fr next btn btn_d submitForm">Pay Now &raquo;</button>
														</div>

													</div>
												</div>
											</div>
										</div>
									</div>

									<div class="page">
										<div class="pageInside">
											<div class="last sepH_c">
												<h3 class="sepH_b">Congratulations!</h3>
												<p  class="sepH_b">fhfgh.</p>
												<p class="sepH_a">Data entered <span class="small">(visible only if php works)</span>:</p>
												<pre id="form_summary"></pre>
											</div>
											
										</div>
									</div>
								</div>

							</div>
							
						</form>

Sofern alles abgeschlossen ist kann ich im id Feld <pre id="form_summary"></pre> was ausgeben, dieses form wird per Post angesprochen. Ich würde allerdings gerne wenn alles Fertig ist und ohne Fehler den Anwender eine X beliebige einer Url weiter leiten.

Vielleicht bin ich ja nur blöd und habe einfach nur einen Denkfehler.. hat jemand von euch eine gute Idee?

lg
Rolf
 
Hi,

ich sehe nirgendwo den JavaScript-Teil. Aber wenn es nur um die Weiterleitung geht, sollte es mit
Code:
location.href = "X";
gehen.

Ciao
Quaese
 

Neue Beiträge

Zurück