Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6690741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:40:19+00:00 2026-05-26T05:40:19+00:00

I am creating a 3D Secure form, which if the user is required to

  • 0

I am creating a 3D Secure form, which if the user is required to re-directs them to the 3D Secure Banks’ gateway.

The issue I have is that the following script :

<SCRIPT LANGUAGE='Javascript' >
<!--
function OnLoadEvent()
{
document.mainform.submit();
}
//-->
</SCRIPT>

Appears to need to be loaded on bodyOnload="OnloadEvent"

Unfortunately I can’t modify the body tags of the page. So I need the code to load when its called in context of the PHP Script.

The code for that is:

} else if($result_arr['valid'] == 'true' && ($mpistatus == '200')) {
          
          $threedurl = urldecode($result_arr['acs_url']);
          $paymentauth = $result_arr['PaReq'];
          $mdcode = $result_arr['MD'];
           
            echo 
            "<form name='mainform' action='$threedurl' method='POST'>
                <center>
                    <h1>Processing your 3D Secure Transaction</h1>
                    <h3>Please click Submit to continue
                    the processing of your 3D Secure
                    transaction.</h3>
                    <input type='submit' value='Submit'>
                </center>
                <input type='hidden' name='PaReq' value='$paymentauth'>
                <input type='hidden' name='TermUrl' value=''>
                <input type='hidden' name='MD' value='$mdcode'>
            </form>
            <SCRIPT LANGUAGE='Javascript' >
            <!--
            function OnLoadEvent()
            {
            document.mainform.submit();
            }
            //-->
            </SCRIPT>
            ";
      }

Can I get it to load the form only when called within the script, if so, how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:40:20+00:00Added an answer on May 26, 2026 at 5:40 am

    Sure ! Just remove the surrounding function def, and the code will be executed right away:

    <SCRIPT LANGUAGE='Javascript' >
    <!--
    document.mainform.submit();
    //-->
    </SCRIPT>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program that's creating a secure directory for user output. This is
I am creating a application using jmf that will be launched on a user's
I am creating some web services which I would like to secure using a
I'm creating a page that makes multiple AJAX form posts without a page refresh.
This is my first time creating a PHP form that will run a MySQL
I have a high-level goal of creating a static utility class that encapsulates the
I am creating a web service for end users which will have a front-end
How would I go about creating a tripcode system (secure) for a message board
Creating liquid layouts is an immense pain. Now, I totally understand that tables should
Creating a google map with store locations within 50 miles of user entered address.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.