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.

I not understand in than your problem. what do you try do?

Member Avatar for diafol

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

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

Member Avatar for diafol

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...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.