Adding PayPal buttons within a Part disables editing of Page

Options
I've encountered a problem where a Part (either FTI or Unformatted) has PayPal button code is preventing other Parts on a page from being added, cut or moved.



At a guess I would say it's possibly due to the PayPal code having form tags which are conflicting with the page when in editor/page design mode.



Is this something anyone has encountered before?



Example PayPal code:

 
<br /><br /><br/><form action="https:&#47;&#47;www&#46;paypal&#46;com&#47;cgi-bin&#47;webscr" method="post" target="_top">
<br /><br/><input type="hidden" name="cmd" value="_s-xclick" &#47;>
<br /><br/><input type="hidden" name="hosted_button_id" value="XXXXXX" &#47;>
<br /><br/><table>
<br /><br/><tbody>
<br /><br/><tr>
<br /><br/><td><input type="hidden" name="on0" value="Quantity" &#47;>Quantity<&#47;td>
<br /><br/><&#47;tr>
<br /><br/><tr>
<br /><br/><td><select name="os0">
<br /><br/><option value="value1">value1<&#47;option>
<br /><br/><&#47;select><&#47;td>
<br /><br/><&#47;tr>
<br /><br/><&#47;tbody>
<br /><br/><&#47;table>
<br /><br/><&#47;form>
<br /><br /><br/><form action="https:&#47;&#47;www&#46;paypal&#46;com&#47;cgi-bin&#47;webscr" method="post" target="_top">
<br /><br /><br/><input type="hidden" name="cmd" value="_s-xclick" &#47;> 
<br /><br/><input type="hidden" name="hosted_button_id" value="XXXXXXX" &#47;> 
<br /><br/><input type="image" name="submit" src="https:&#47;&#47;www&#46;paypalobjects&#46;com&#47;en_GB&#47;i&#47;btn&#47;btn_buynow_LG&#46;gif" alt="PayPal &ndash; The safer, easier way to pay online&#46;" &#47;> 
<br /><br/><img alt="" border="0" height="1" src="https:&#47;&#47;www&#46;paypalobjects&#46;com&#47;en_GB&#47;i&#47;scr&#47;pixel&#46;gif" width="1" &#47;>
<br /><br /><br/><&#47;form>
<br /><br /><br/>
Tagged:

Comments

  • See: http://www.smartthing.co.uk/blog/blog...



    I had to do this for a client so put together some instructions for others...
  • Hi Warren,



    Thanks for that although I think that's only suitable for donation uses and not for my example which has a form select field to pass through to PayPal.
  • You can make the paypal form work too, it just needs a little code amend to work with NetCommunity so if you want a hand with that let me know. Only just realised it was you Jonathan! You have my number/email.
  • :) Thanks Warren - I thought it would be worth having it on here should anyone else have similar problems. I'll drop you an email shortly!

Categories