0

Would apreciate if someone can help with below solution.
I need to put customer registration details to the third party database via api requests using Get variables.

I have the folowing information.
https://www.thirdparty.com/API/Request.ashx?command=createcustomer&username=&password=&customer=_&customerpassword=

Variable Value Description
command createcustomer
username X..140 the username of the reseller
password X..100 the password of the reseller
customer X..140 the username of the customer
customerpassword X..100 the password of the customer

Thank you.

3
Contributors
4
Replies
5
Views
5 Years
Discussion Span
Last Post by diafol
0

So what do you need? You've said how to pass data to the website, but not what you have a problem with completing.

0

the problem is that i don't know how to code the above said, would be thankfull if someone can help with code

1

Showing passwords in an url is not usually the best way, but anyway...

<?php
function makeMyLink($baseurl,$params){
    $link = $baseurl . '?' . http_build_query($params);
    return $link;
}

$baseurl = "https://www.thirdparty.com/API/Request.ashx";

$username = "from DB?";
$pw = "from DB?";
$customer = "from DB?";
$customerpw = "from DB?";

$params = array("command"=>"createcustomer", "username"=>$username, "password"=>$pw, "customer"=>$customer,"customerpassword"=>$customerpw);
?>

<a href="<?php echo makeMyLink($baseurl,$params);?>">Create Customer</a>

That's something you could do, but without knowing from where you get your data, it's difficult to know...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.