So this is directed at everyone, but I see Snicker being my savior once again. 
So far I have
PHP Code:
<form autocomplete="off" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<input type="hidden" name="csrftoken" value="" />
<?php
if(isset($_POST['submit']))
{
if($price['type'] == 'vote'){
if($account_extra['vote_points'] < $price['vp'])$errors[] = "You don't have enough vote points (Needed ".$price['vp']." VP)";
}else if($price['type'] == 'donate'){
if($account_extra['donation_points'] < $price['dp'])$errors[] = "You don't have enough donation points (Needed ".$price['dp']." DP)";
}
if(count($errors) < 1){
$username = '******';
$password = '****';
$character = $_GET['character'];
$id_reward = $_POST['pets'];
$subject = "This is the Original RA access Command.";
$text = "Assuming this works correctly then I should be able to enter a name and send this message with the attached item. With that the items can be listed as a drop down menu so that they can choose the item and character from a dropdown menu. For now we'll be testing that the item itself sends correctly.";
$host = "logon.doxramos.org";
$soapport = 7878;
$command = 'send items '.$character.' "'.$subject.'" "'.$text.'" '.$id_reward.'';
$client = new SoapClient(NULL,
array(
"location" => "http://$host:$soapport/",
"uri" => "urn:TC",
"style" => SOAP_RPC,
'login' => $username,
'password' => $password
));
try {
$result = $client->executeCommand(new SoapParam($command, "command"));
echo "Command succeeded! Output:<br />\n";
echo $result;
}
catch (Exception $e)
{
echo "Command failed! Reason:<br />\n";
echo $e->getMessage();
}
For the top portion of my donation page. Below that I have
PHP Code:
<div class="form-row required">
<label for="character" class="label-full ">
<strong>Select a Character</strong>
<span class="form-required">*</span>
</label>
<?php
$get_chars = mysql_query("SELECT * FROM $server_cdb.characters WHERE account = '".$account_information['id']."'");
while($character = mysql_fetch_array($get_chars)){
}
?>
<select id="character" name="character">
<?php
$online = 0;
$get_chars = mysql_query("SELECT * FROM $server_cdb.characters WHERE account = '".$account_information['id']."'");
while($character = mysql_fetch_array($get_chars)){
echo '<option value="'.$character['guid'].'">'.$character['name'].'</option>';
if($character['online'] == 1) $online = 1;
}
?>
</select>
</div>
<div class="form-row required">
<label for="CharNew" class="label-full ">
<strong>Pet Selection</strong>
<span class="form-required">*</span>
</label>
<select id="pets" name ="pets" onchange="showPet(this.value)">
<?php
$get_vote_pets = mysql_query("SELECT * FROM $server_db.pet_rewards WHERE price =10 ORDER BY guid");
while($results = mysql_fetch_array($get_vote_pets)){
echo '<option value="'.$results['id'].'">'.$results['name'].'</option>';
}
?>
</select>
</div>
<fieldset class="ui-controls " >
<?php
echo '<button class="ui-button button1" type="submit" name="submit" id="settings-submit" value="Continue" tabindex="1">';
?>
<span><span>Continue</span></span>
</button>
<a class="ui-cancel" href="account_man.php" tabindex="1"><span>Cancel</span></a>
</fieldset>
</form>
When you select a character and an in game pet from the dropdown menu it says character not found. I'm assuming it's not pulling the POST commands or the GET seeing as I've tried both. When the script is being ran on the same page does anyone know what I'm doing wrong?