Jump to content

Passing $params to custom page


Bweb

Recommended Posts

Here is what I cannot figure out:

 

I have created a custom form in the client area, where I want users to fill out some information and then use CURL to send it to an external system...

 

Used the guide here http://wiki.whmcs.com/Creating_Pages

 

...and in the "put any code you like", I was hoping to get the input from my .tpl file and place my custom code.

 

How can I pass the POST data from the tpl file into here? I started with:

if ($_POST["submit"])

..... Do all my CURL stuff here....

 

However, I also want to get some things from WHMCS, like the customers currency or name and add it to my Curl request...

 

 

Since most of the code is encrypted, how do the other pages pass information? For example, the "Update my profile" page would be good to have as an example since it pre-populates the fields from the DB, then allows me to change the info...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated