paste source code into html

marklandry 19 Apr, 2010
Hi
I'm trying to paste a form code into the output page of Jomsocial (joomla community extension).
It works fine unless I logout and login, or logout and login as a different user, then I get "You are not allowed to access this URL " and the info doesn't post to the db.

The form works fine when accessed the "normal" way.

The form can be viewed at http://www.tantomedia.com/scratchgolfer/index.php?option=com_community&view=profile&Itemid=188 username davidholoboff pass d@v1d/h0l0b0FF.

Also, here's my code:

 <form name="ChronoContact_scratchtracker" id="ChronoContact_scratchtracker" method="post" action="http://www.tantomedia.com/scratchgolfer/index.php?option=com_chronocontact&task=send&chronoformname=scratchtracker" >

		
				<div class="form_item">
  <div class="form_element cf_datetimepicker">

    <label class="cf_label" style="width: 150px;">Date</label>
    <input class="cf_datetime required" title="" size="20" id="date_0" name="date_0" type="text" />
    
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">

  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Fairways</label>

    <input class="cf_inputbox required validate-number" maxlength="150" size="2" title="" id="text_1" name="text_1" type="text" />
  <a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" alt="" src="/scratchgolfer/components/com_chronocontact/css/images/tooltip.png"/></a>
				<div class="tooltipdiv">Fairways :: Enter the total number of fairways hit for the round</div>
  </div>
  <div class="cfclear"> </div>

</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Greens in Regulation</label>

    <input class="cf_inputbox required validate-number" maxlength="150" size="2" title="" id="text_2" name="text_2" type="text" />
  <a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" alt="" src="/scratchgolfer/components/com_chronocontact/css/images/tooltip.png"/></a>
				<div class="tooltipdiv">Greens in Regulation :: Enter the total number of greens hit in regulation for the round</div>
  </div>

  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Putts</label>

    <input class="cf_inputbox required validate-number" maxlength="150" size="2" title="" id="text_3" name="text_3" type="text" />
  <a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" alt="" src="/scratchgolfer/components/com_chronocontact/css/images/tooltip.png"/></a>
				<div class="tooltipdiv">Putts :: Enter your total number of putts for the round</div>

  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_textbox">
    <label class="cf_label" style="width: 150px;">Penalties</label>

    <input class="cf_inputbox required validate-number" maxlength="150" size="2" title="" id="text_4" name="text_4" type="text" />
  <a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" alt="" src="/scratchgolfer/components/com_chronocontact/css/images/tooltip.png"/></a>

				<div class="tooltipdiv">Penalties :: Enter the total number of penalty strokes for the round</div>
  </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_captcha">
    <label class="cf_label" style="width: 150px;">Verify</label>

    <span><input name="chrono_verification" style="vertical-align:top;" type="text" id="chrono_verification" value="" />

							  <img src="http://www.tantomedia.com/scratchgolfer/components/com_chronocontact/chrono_verification.php?imtype=1" alt="" /></span> 
    
    </div>
  <div class="cfclear"> </div>
</div>

<div class="form_item">
  <div class="form_element cf_button">
    <input value="Submit" name="button_6" type="submit" />
  </div>
  <div class="cfclear"> </div>

</div>
		<input type="hidden" name="7150a6d57d8b96350f9e2cba0f6ce6d0" value="1" />	
                	<input type="hidden" name="1cf1" value="3b062f6d272496a7a2f22a644e1caab6" />
                </form>

<!-- don't remove the following 3 lines if you didn't buy a subscription --> 
<div class="chronoform">
<a href="http://www.chronoengine.com">Powered By ChronoForms - ChronoEngine.com</a>

</div>
<!-- don't remove the 3 lines above if you didn't buy a subscription -->	

										
<!-- END: #SCRATCHTRACKER FORM -->	


Thanx a ton for your help...

Mark
nml375 19 Apr, 2010
Hi Mark,
You are, most likely, having an issue with the Joomla Security Token being reset/updated during logon/logoff operations. Try disabling the checkToken option in your Form Setup.

/Fredrik
marklandry 19 Apr, 2010
THanx a ton Fredrik - that did it!
This topic is locked and no more replies can be posted.