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 3315230
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T22:19:32+00:00 2026-05-17T22:19:32+00:00

Good day. I am having the following code snippet in init.php. <?php include_once(config.php); include_once(__SITE_PATH

  • 0

Good day. I am having the following code snippet in init.php.

<?php
include_once("config.php");
include_once(__SITE_PATH . 'view/' . $_REQUEST['page'] . EXT);

$loginobj = new $_REQUEST['page']($_REQUEST['billingentitynuber']);
$text = $loginobj->$_REQUEST['content']();
echo $text;
?>

In Jquery I am having the function Jquery_event.js

$("#entertoapp").click(function()
{         
  alert($("#btval").val());
  $.ajax({
    type: "POST",
    url: "init.php?page=processing&content=enterintoapplication&btval=" + $("#btval").val(),

    success: function(msg) {
      alert(msg);
      if(msg==1)
        window.location.href='index.php?page=processing&content=mycontent';
    }
  });
});

In processing.php I am having

<?php
class processing
{
  public function enterintoapplication()
  {
    global $billingentityname;
    $_SESSION['btval'] = $billingentityname;
    echo $billingentityname;
  }
}
?>

My problem is I am getting all the parameters in the init.php. But when I call a function I need to get in the processing.php in the enterintoapplication function (i.e. I am expecting btval in the enterintoapplication function). How can I achieve this? I tried to get $_REQUEST['btval'] within the function. But I didn’t get.

  • 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-17T22:19:33+00:00Added an answer on May 17, 2026 at 10:19 pm

    Try assigning the values to variables, for example this works for PHP 4:

    class processing
    {
      function enterintoapplication()
      {
        echo "hello";
      }
    }
    
    $className="processing";
    $functionName="enterintoapplication";
    
    $loginobj=new $className();
    $text=$loginobj->$functionName();
    echo $text;
    

    Paste it here to verify it works: http://writecodeonline.com/php/

    Pls,pay attention to “$functionName”, here it keeps the “$”.

    Nevertheless, for security reasons, you should be attentive to what people can do if they change the value “page”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good day everybody! Having the following code: template<typename T, typename OutStream = std::ostream> struct
Good morning, I am having trouble with the following code <html> <head> <title>highlight date</title>
Good day, I am having trouble modifying XML using SimpleXMLElement in PHP. My XML
Good day! I am having errors in merging/combining/concatenating arrays. For example I have arrays,
Good day everyone. I have been having the same problem all day at work
Good day, I am having an issue trying to get the Text on a
Good day all, I am having some trouble with image permissions. I am loading
good day, i am having a bit of a problem here. i am using
Good day, I am having a little bit of a problem. I want to
Good day everybody, I'm having troubles with the display of a data that does

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.