The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Blank page
tudsy
post Oct 4 2023, 08:23 AM
Post #1


Advanced Member
****

Group: Members
Posts: 246
Joined: 30-September 14
Member No.: 21,611



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. Attached File  process_doubleoptin.txt ( 4.82k ) Number of downloads: 127
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 4 2023, 03:24 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



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()) {
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
tudsy
post Oct 4 2023, 04:14 PM
Post #3


Advanced Member
****

Group: Members
Posts: 246
Joined: 30-September 14
Member No.: 21,611



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:

Attached File  form_sandbox.txt ( 5.31k ) Number of downloads: 84
Attached File  yourart2.txt ( 16.37k ) Number of downloads: 88
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
tudsy
post Oct 4 2023, 04:15 PM
Post #4


Advanced Member
****

Group: Members
Posts: 246
Joined: 30-September 14
Member No.: 21,611



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:

Attached File  form_sandbox.txt ( 5.31k ) Number of downloads: 84
Attached File  yourart2.txt ( 16.37k ) Number of downloads: 88



Oops

yourart2.php -> form_sandbox ->process_doiubleoptin
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
tudsy
post Oct 6 2023, 06:31 AM
Post #5


Advanced Member
****

Group: Members
Posts: 246
Joined: 30-September 14
Member No.: 21,611



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:

Attached File  form_sandbox.txt ( 5.31k ) Number of downloads: 84
Attached File  yourart2.txt ( 16.37k ) Number of downloads: 88



Oops

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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
tudsy
post Oct 6 2023, 08:53 AM
Post #6


Advanced Member
****

Group: Members
Posts: 246
Joined: 30-September 14
Member No.: 21,611



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:

Attached File  form_sandbox.txt ( 5.31k ) Number of downloads: 84
Attached File  yourart2.txt ( 16.37k ) Number of downloads: 88



Oops

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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Jason Knight
post Oct 10 2023, 04:49 PM
Post #7


Advanced Member
****

Group: Members
Posts: 103
Joined: 25-December 22
Member No.: 28,719



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.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 27th April 2024 - 12:34 AM