close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

write session after validation

Thread began 4/27/2009 7:52 am by carsten299415 | Last modified 4/29/2009 2:09 am by carsten299415 | 5294 views | 12 replies

carsten299415

No Session after Validation

Hi Ray,

your fix doesn't solve my problem. I think there is a problem between the form validation and the sessions. The validation rules work fine. If i put the following code block outside the "if (isset($_POST["XOX_Shop_Checkout_1_x"]) || isset($_POST["XOX_Shop_Checkout_1"])) {" if block, the validation works, but the Sessions are not displayed in my input fields (i left one reqiered field empty and then i am redirected to the same page i posted from).

Block:
$_SESSION['re_plz'] = (isset($_POST['postcode'])?$_POST['postcode']:"");
$_SESSION['re_stadt'] = (isset($_POST['city'])?$_POST['city']:"");
$_SESSION['re_strasse2'] = (isset($_POST['street2'])?$_POST['street2']:"");
$_SESSION['re_strasse1'] = (isset($_POST['street1'])?$_POST['street1']:"");
$_SESSION['re_fax'] = (isset($_POST['fax'])?$_POST['fax']:"");
$_SESSION['re_telefon'] = (isset($_POST['phone'])?$_POST['phone']:"");
$_SESSION['re_email'] = (isset($_POST['email'])?$_POST['email']:"");
$_SESSION['re_name'] = (isset($_POST['lastname'])?$_POST['lastname']:"");
$_SESSION['re_vorname'] = (isset($_POST['firstname'])?$_POST['firstname']:"");
if(isset($_POST['eC_SameAs'])&&($_POST['eC_SameAs'] == true)) {
$_SESSION['li_plz'] = (isset($_POST['postcode'])?$_POST['postcode']:"");
$_SESSION['li_stadt'] = (isset($_POST['city'])?$_POST['city']:"");
$_SESSION['li_strasse2'] = (isset($_POST['street2'])?$_POST['street2']:"");
$_SESSION['li_strasse1'] = (isset($_POST['street1'])?$_POST['street1']:"");
$_SESSION['li_fax'] = (isset($_POST['fax'])?$_POST['fax']:"");
$_SESSION['li_telefon'] = (isset($_POST['phone'])?$_POST['phone']:"");
$_SESSION['li_email'] = (isset($_POST['email'])?$_POST['email']:"");
$_SESSION['li_nachname'] = (isset($_POST['lastname'])?$_POST['lastname']:"");
$_SESSION['li_vorname'] = (isset($_POST['firstname'])?$_POST['firstname']:"");
} else {
$_SESSION['li_plz'] = (isset($_POST['shipping_postcode'])?$_POST['shipping_postcode']:"");
$_SESSION['li_stadt'] = (isset($_POST['shipping_city'])?$_POST['shipping_city']:"");
$_SESSION['li_strasse2'] = (isset($_POST['shipping_street2'])?$_POST['shipping_street2']:"");
$_SESSION['li_strasse1'] = (isset($_POST['shipping_street1'])?$_POST['shipping_street1']:"");
$_SESSION['li_fax'] = (isset($_POST['shipping_fax'])?$_POST['shipping_fax']:"");
$_SESSION['li_telefon'] = (isset($_POST['shipping_phone'])?$_POST['shipping_phone']:"");
$_SESSION['li_email'] = (isset($_POST['shipping_email'])?$_POST['shipping_email']:"");
$_SESSION['li_nachname'] = (isset($_POST['shipping_lastname'])?$_POST['shipping_lastname']:"");
$_SESSION['li_vorname'] = (isset($_POST['shipping_firstname'])?$_POST['shipping_firstname']:"");


When i put the block into the if clause, then the session values are displayed in the input fields. Then i fill the last required field. the validation runs and i am redirected to the next page. there i display all session values again as text. but the last inserted value is missing.

if i re run the validation, the last session values are not rewritten.

Can u help again?

Greetings, Carsten.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...