PHP Code Before and After <Form> Tag

Hi Everyone,

We are implementing a shopping cart script into a Freeway Document. I have a login on the bottom of all my pages. Once the user logs in, I am using PHP to hide it.

I have a couple input elements grouped on the bottom of the page with the Multiple Form Action applied. I need to put PHP code before and after the opening and closing tags. I’ve tried using CrowBar on the item but the “Beginning” or “End” options don’t allow you to put the code before or after the tags.

Am I using CrowBar incorrectly? Is there another action to accomplish this?

Christian


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

CrowBar can’t reach that far outside of the box. If it’s inside a paragraph, it can see the enclosing P tag, but it can’t jump out further to the form that encloses the P.

Now instead of adding the form through the Multiple Form Action, try adding it long-hand (just copy the code that Multiple Form created using a text editor) with the TagWrap Action applied to the HTML box you want to show or hide.

So in the Before box, you would put the form code <form action="whatever" method="post"> and the After box would have </form>. Along with that, you could put your PHP hiding conditional. I’m not sure how much code you can put in these text fields, probably 255 characters or something like that, and you can’t put line-breaks in there. But if all you’re doing is something like <?php if ( ! $current_user ) { ?> then you can easily fit that in there.

Walter

On Nov 16, 2011, at 12:21 PM, TeamSDA wrote:

Hi Everyone,

We are implementing a shopping cart script into a Freeway Document. I have a login on the bottom of all my pages. Once the user logs in, I am using PHP to hide it.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options