Posted by: tudsy Oct 4 2023, 08:23 AM
Hi
I am writing a script to perform double optin and then goto Paypal for the customer to pay. But when I go through the process, It produces a blank page. I use jquery to submit the form without a submit button.
Any help is appreciated. Thanks.
process_doubleoptin.txt ( 4.82k )
Number of downloads: 249
Posted by: Christian J Oct 4 2023, 03:24 PM
The attached file seems to miss the first parts.
Also you shouldn't remove the code formatting; not only does it make the code harder to read, but the one-line comments may break subsequent PHP code on the same line, such as here:
CODE
// Check connection if (mysqli_connect_errno()) {
Posted by: tudsy Oct 4 2023, 04:14 PM
QUOTE(Christian J @ Oct 5 2023, 05:54 AM)
The attached file seems to miss the first parts.
Also you shouldn't remove the code formatting; not only does it make the code harder to read, but the one-line comments may break subsequent PHP code on the same line, such as here:
CODE
// Check connection if (mysqli_connect_errno()) {
Hi
Here are two files involved in the process:
form_sandbox.txt ( 5.31k )
Number of downloads: 195
yourart2.txt ( 16.37k )
Number of downloads: 215
Posted by: tudsy Oct 4 2023, 04:15 PM
QUOTE(tudsy @ Oct 5 2023, 06:44 AM)
QUOTE(Christian J @ Oct 5 2023, 05:54 AM)
The attached file seems to miss the first parts.
Also you shouldn't remove the code formatting; not only does it make the code harder to read, but the one-line comments may break subsequent PHP code on the same line, such as here:
CODE
// Check connection if (mysqli_connect_errno()) {
Hi
Here are two files involved in the process:
form_sandbox.txt ( 5.31k )
Number of downloads: 195
yourart2.txt ( 16.37k )
Number of downloads: 215Oops
yourart2.php -> form_sandbox ->process_doiubleoptin
Posted by: tudsy Oct 6 2023, 06:31 AM
QUOTE(tudsy @ Oct 5 2023, 06:45 AM)
QUOTE(tudsy @ Oct 5 2023, 06:44 AM)
QUOTE(Christian J @ Oct 5 2023, 05:54 AM)
The attached file seems to miss the first parts.
Also you shouldn't remove the code formatting; not only does it make the code harder to read, but the one-line comments may break subsequent PHP code on the same line, such as here:
CODE
// Check connection if (mysqli_connect_errno()) {
Hi
Here are two files involved in the process:
form_sandbox.txt ( 5.31k )
Number of downloads: 195
yourart2.txt ( 16.37k )
Number of downloads: 215Oops
yourart2.php -> form_sandbox ->process_doiubleoptin
Hi
I have tested the form and it passes the correct values (through alerts). I suspect its the jquery but I am not sure. I cleaned up the code a bit (the comments).
Thanks.
Posted by: tudsy Oct 6 2023, 08:53 AM
QUOTE(tudsy @ Oct 6 2023, 09:01 PM)
QUOTE(tudsy @ Oct 5 2023, 06:45 AM)
QUOTE(tudsy @ Oct 5 2023, 06:44 AM)
QUOTE(Christian J @ Oct 5 2023, 05:54 AM)
The attached file seems to miss the first parts.
Also you shouldn't remove the code formatting; not only does it make the code harder to read, but the one-line comments may break subsequent PHP code on the same line, such as here:
CODE
// Check connection if (mysqli_connect_errno()) {
Hi
Here are two files involved in the process:
form_sandbox.txt ( 5.31k )
Number of downloads: 195
yourart2.txt ( 16.37k )
Number of downloads: 215Oops
yourart2.php -> form_sandbox ->process_doiubleoptin
Hi
I have tested the form and it passes the correct values (through alerts). I suspect its the jquery but I am not sure. I cleaned up the code a bit (the comments).
Thanks.
Hi
The problem is solved!!!
It was the formatting of the <script> tags for the jquery.
Thanks.
Posted by: Jason Knight Oct 10 2023, 04:49 PM
Malformed form, incomplete markup, JavaScript doing HTML's job (the validation), tables for layout, global functions, innerHTML running security risks, static style in the CSS, pixel metrics telling users with accessibility needs to go **** themselves, tags that haven't been valid HTML in two and a half DECADES, quirks mode rendcering thanks to no <!DOCTYPE html>...
No offense menat, but your HTML reeks of having not learned enough modern HTML to be playing with JavaScript yet. Especially not for something security related like PayPal. Though honestly the mere presence of jquery and lack of media attributes says that too.
It's all such a weird mix of mid 1990's and "HTML 5, what's that" I can't even decipher what you expect it to do or are even trying to make it do.