close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Line 917 in confirm.php - typo?

Thread began 12/06/2009 3:09 pm by pete268226 | Last modified 12/07/2009 3:27 pm by pete268226 | 690 views | 2 replies |

pete268226

Line 917 in confirm.php - typo?

Is this a typo on line 917 of confirm.php?

$WAGatewayResponse = PP_DirectPayment_Post($PP_DirectPayment_required,$PP_DirectPayment_itemized,$PP_DirectPayment_optional);
if ($WAGatewayResponse) {
$WA_Store_Cart->redirStr = "checkout_success.php";
}
else if ("checkout_failured.php" != "") {
header("Location: ". "checkout_failure.php");
exit();
}

I'm wondering if the else-if statement should read: (with no 'd' on the filename...)

else if ("checkout_failure.php" != "") {

Sorry if I'm wrong - but it just seemed out of place.
Pete

Sign in to reply to this post

Jason ByrnesWebAssist

wont really effect anything, that if statement is just comparing the two strings "checkout_failured.php" and "".

to make sure that a failure page has actually been set. If one where not sset, thaen the else if would be:
else if ("" != "") {
header("Location: ". "");
exit();
}


it is really there to prevent:
header("Location: ". "");

from being run is a failure page had not been chosen, which would generate a PHP error.

Sign in to reply to this post

pete268226

Ah, I see. Now I know everything! ;>
Pete

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