Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > RocketCake
How to pass content frame to PHP form.

ivarforkbeard
Registered User
Quote
2023-03-11 14:41:16

So if I have a masterpage that includes a contact form at the bottom, and I want to know WHAT was in the content frame when someone fills out the form (as they are commenting on the page actually in the content frame) - how will I do that?

Thanks in advance!


erik
Registered User
Quote
2023-03-11 14:46:37

In the PHP code, you could send the current URL with the text. It's in PHP like this:
$_SERVER['REQUEST_URI']



ivarforkbeard
Registered User
Quote
2023-03-11 15:28:12

Ha! I think this might work. Just to confirm though, I have to rename all my pages to .php even though the actual php resides on the masterpage in my rocketcake file... Unless I'm missing something?


ivarforkbeard
Registered User
Quote
2023-03-13 16:31:19

Okay, so yeah, something weird is afoot here. I think I can leave my masterpage extension as .html, but the "content" pages have to be .php to get the contact form to work. But for some reason, all images have stopped working on the content pages and it's just showing the alt text.

Thoughts?


erik
Registered User
Quote
2023-03-13 18:20:25

"Stopped working"? Do you get an error?


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (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