close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

keep pre-populated hidden field value

Thread began 4/17/2019 10:21 pm by JBWebWorks | Last modified 4/18/2019 12:52 pm by Ray Borduin | 55 views | 3 replies |

JBWebWorks

keep pre-populated hidden field value

have three pages; 1st page has 4 products with paypal forms to submit. That redirects to a checkout form page where the user fills out their information. That page has hidden fields from the paypal form on the 1st page. When validation is done to the checkout form, the hidden fields values are removed. I want to keep the hidden field values to pass on to a confirmation page before the order is submitted.

Sign in to reply to this post

Ray BorduinWebAssist

Can I see a copy of the page? There are "Validated Fields" bindings you can use to get the value of a field after validation. I'd like to see your page to see how it is currently populated to suggest the right code to use to accomplish your needs. I'll want the page with the hidden fields and the page that does the validation if they are on different pages because both might need small updates.

Sign in to reply to this post

JBWebWorks

Ray,
I have attached the two pages. What I was trying to do is get the information to the confirm_NFC page and then submit the order to paypal.
I have used ecart with dynamic items on this website and that works fine, but the owner wants a separate page for a different tour that she doesn't want combined with the current shopping cart.
I am thinking about doing a static cart for this situation.

Sign in to reply to this post

Ray BorduinWebAssist

On the confirm page on line 7 change:

php:
$WAFV_Redirect = "checkout_NFC.php";


to:

php:
$WAFV_Redirect = "checkout_NFC.php?invalid";



Then on the checkout page, you can populate the values conditionally from the failed validation when necessary. So the hidden value:

php:
<input name="item_name" type="hidden" value="<?php echo((isset($_POST["item_name"]))?$_POST["item_name"]:""?>" />

$WAFV_Redirect = "checkout_NFC.php?invalid";



becomes:

php:
<input name="item_name" type="hidden" value="<?php echo((isset($_GET["invalid"]))?ValidatedField("confirmNFC_392","item_name"):$_POST["item_name"]) ?>" />

$WAFV_Redirect = "checkout_NFC.php?invalid";
Sign in to reply to this post

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...