Hello,
I am a total newbie. I am trying to use an API for which I have an example. I can get what I need by hardcoding the PHP file with variable information (i.e. name, email address, etc) and everything works. I want to be able to create a form that will pass information to the PHP program so that I do not have to hard code.
Here is what the hard coding looks like:
[size=10pt]<?php
$livezillaURL = “http(s)://{yourdomain}/livezilla/”;
$apiURL = “http://abc.com/api/v2/api.php”;
// authentication parameters
$postd[“p_user”]=‘myuserid’;
$postd[“p_pass”]=md5(‘mypassword’);
// function parameter
$postd[“p_abc_create”]=1;
$postd[“p_json_pretty”]=1;
class ABC
{
public $Email = "[email protected]";
public $Company = “Doe Ltd.”;
public $Firstname = “John”;
public $Lastname = “Doe”;
}
$newItem = new ABC();
$postd[“p_data”]= json_encode(array(“ABC”=>$newItem));
etc…
?>[/size]
All I am trying to do is create an HTML form where I can pass the email address without hard coding.
Please help!