Jump to content

& being replaced by & by editor


Guest

Recommended Posts

I am trying to create a contact form for certain members only.

I have my admin modded to be able to show or hide site documents, so I can create the form page and all redirect pages without a problem.

HOWEVER

When I built the form page I clicked "Source" and added the form code under the explaination text.

in the redirect part of the form i put this tag

<input type=hidden name=redirect value="http://www.mysite.com/main/index.php?act=viewDoc&docId=9999">
(My hidden thankyou page)

When you update the document and go to use the form it is replacing

with

Therefore when the form tries to send the user to the thankyou page it can not be found because the &docId has been replaced with &amp;docId

Any ideas anyone? :P

Link to comment
Share on other sites

Guest estelle

Perhaps have another go. I am sure you can edit fields with phpMyAdmin and it won't replace & with &amp;. I have done this myself but for slightly different reasons - I wanted to put php code into a site document, and the FCKEditor was stripping anything between <?php and ?>.

Or you might want to install this and extend it so that the FCKEditor is not used for site documents (and a textarea is used instead).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...