Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
Add HTML to end of a page?

quallsdw
Registered User
Quote
2018-07-31 19:45:40

Is it possible to add custom HTML to the end of a page, after the [/html] final tag? I need to close a php script that all of the page html is within. I'm getting around that by adding the code below manually at the end of the code after publishing to my desktop. Basically, I need the } character immediately after the [/html] tag and ideally without having to manually add it post-publishing.

<?php
}
?>

Thanks for any insight! It may not be possible, but thought I'd ask.


erik
Registered User
Quote
2018-08-01 06:19:37

I'm not aware of a way to do that, sorry. But out of interest, why would you need that? Wouldn't it possible to also do your PHP code before the [/html] end?


quallsdw
Registered User
Quote
2018-08-01 20:15:26

Thanks for the reply. I'm using a php_self call for a form I'm using. When a user first goes to the page, an initial php script IF statement determines which section of html to write to the browser. Then when the form is submitted to itself, the initial php code sees there is form submitted data, and then writes a different section of html to the browser. It's that last section of html that I need to close in the if-else logic of the original php code. I'm sure there's a better or easier way to do this, but I'm a civil engineer who just does minor web design stuff on the side for a few bucks. This was the easiest way I knew to prevent users from being able to directly go to the next pages in the form portal. It's a system where they have to log-in initially and then a page is given to them if the login is successful. I don't want them to be able to go directly to that URL of the next screen, so I did it all with a PHP_self script. Ha, I'm sure the experienced guys on here are laughing their ass off at this, but hey it works!


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact