My site www.thetubist.com, I though was working fine as all functions work perfectly on my computer however, it seems that maybe the site is dependant on my system, is that possible??? (referencing?)
Trying to make a new post on someone elses computer, a link just does not work. Can anyone at all help me out as to why this could be? I just dont understand it!
Below is the code related to the posting page (this is the posting page) I just can see anything related in that script - can anyone else??
Any any help would be really appreciated.
Thanks
Trying to make a new post on someone elses computer, a link just does not work. Can anyone at all help me out as to why this could be? I just dont understand it!
Below is the code related to the posting page (this is the posting page) I just can see anything related in that script - can anyone else??
Any any help would be really appreciated.
Thanks

PHP:
// generates page where new listing can be added
// ============================================================
//
function generate_add_form() {
//error_reporting(E_ALL);
if (!$_GET["category_id"]){
$output = 'Post a new ad:';
$output = '<p><span class="cftitle">Add New Listing</span>';
$output .= '<form method="GET" name="outPuTCatEgOrY" enctype="multipart/form-data" action="'.$_SERVER["PHP_SELF"] . '?' . $_SERVER["QUERY_STRING"] .'">';
$output .= '<input type="hidden" name="cf_action" value="'.$_GET["cf_action"].'">';
$output .= '<input type="hidden" name="category_id" value="">';
$output .= '<input type="hidden" name="list" value="">';
$output .= '</form>';
$output .= '<form method="GET" action="" name="tst2" id="tst2">';
$output .= '<table border="0" cellspacing="0" cellpadding="3">';
// Add Locations Options
$locations = array();
$new_id='01';
$this->db->query('SELECT * FROM classifieds_categories WHERE category_id LIKE \''.$new_id.'%\' AND Length(category_id)=4') or die(mysql_error());
while ($this->db->next_record()) {
//if(strlen($this->db->f('category_id'))<>4) continue;
$categoryId1 = substr($this->db->f('category_id'),2);
$locations[$categoryId1] = $this->db->f('category_name');
}
$output .= '<tr><td align="right" valign="top"><span class="cfbinfo">Location:</span></td><td valign="top"><span class="cfasterisk">*</span></td><td align="left" valign="top">'.returnOptions('locations',$locations);
$output .= '</td><td> </td><td align="left" valign="top"><span class="cfhint">Please select Location where you want to add listing.</span></td></tr>' . "\n";
$categories = array();
$new_id='01';
$this->db->query('SELECT * FROM classifieds_categories WHERE Length(category_id)=2') or die(mysql_error());
$jsOutput = '';
$nobjects = array();
$output2 = '';
while ($this->db->next_record()) {
$categoryId1 = substr($this->db->f('category_id'),0,2);
$categories[$categoryId1] = $this->db->f('category_name');
$output2 .= addAllOptions($this->db->f('category_id').$new_id);
}
$output .= addJs().'<tr><td align="right" valign="top"><span class="cfbinfo">Category:</span></td><td valign="top"><span class="cfasterisk">*</span></td><td align="left" valign="top">'.addFormStartElements('tst',$categories);//returnOptions('categories',$categories);
$output .= '</td><td> </td><td align="left" valign="top"><span class="cfhint">Please select Category where you want to add listing.</span></td></tr>' . "\n";
$output .= '<tr><td align="right" valign="top"><span class="cfbinfo">Sub Categories:</span></td><td valign="top"></td><td align="left" valign="top">'.$output2;
$output .= '</td><td> </td><td align="left" valign="top"><span class="cfhint">Please select Subcategory where you want to add listing.</span></td></tr>' . "\n"."<script>checkSelected('tst','');</script>";
$output .= addValidateForm().'<tr><td align="left" valign="top"><span class="cfbinfo"><a href="javascript: void(0);" onClick="javascript: validateForm();"><font size="3px">Continue</font></a></span></td></tr>';
$output .= '</table>';
$output .= '</form>';
print $output;
return;
Last edited: