Variables

The Info We Post


We send information to your site using the POST method, and the variables we send are listed below

Author Info

  • author - variable to check if it's an author or article post. Check if it's set or not.
  • email - variable to send author's email address.
  • password - variable to send author's account password.
  • first_name - Authors first name only.
  • last_name - Authors last name only.
  • auth_name - Authors full pen name. For example, John Doe
  • address1 - Authors address line 1.
  • address2 - Authors address line 2.
  • zip_code - Authors zip code.
  • city - Authors city name.
  • state - Authors state name.
  • country - Authors country name.
  • phone - Authors phone number.
  • fax - Authors fax number.
  • IP_NUM - Authors ip number.
  • bio - Authors resource box for the author's bio page. A separate author resource box is sent with article submissions.
  • web - Authors website address for the author's bio page.

Article Info

  • articles - variable to check if it's an author or article post. Check if it's set or not.
  • email - Author's email address
  • category - Article's Category Name. It doesn't matter whether the category name is a main category or subcategory. The article will go to the category name as long as it exists in your database.
  • title - Title of the article.
  • article - Body text of the article.
  • description - Summary text of the article.
  • keywords - Keywords for the article. We require these to be entered by each author.
  • resource_box - Author's resource box for each article.
  • wordcount - Word count for each article.

To get any of the information in any of the variables we send, you would use $_POST['auth_name'] for example, to get the authors penname!

Example PHP script -

// Database connection stuff here
if (!$_POST){ // Check if it's and actual $_POST or not
die; // Exit the script
}
if(isset($_POST['author'])) // Check if it's an author record. If not set, it's an illegal access
{
$auth_name = $_POST['author'];
// Etc.... Get your variables to include in your database
// Be sure to initialize your variables and check they are what they should be!
// You would do the same thing for articles submissions. Check if $_POST['articles'] is set first,
// then create your variables and add the info to your database
}