Hello,
in the custom form processing if have the php-code:
$var = "TEST";
in the editbox of the success page:
$var
user defined variables and the vars from hidden fields work but i cannot show this php one.
What could it be?
Franz
PHP variable not showing
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
- BaconFries
-
- Posts: 5914
- Joined: Thu Aug 16, 2007 7:32 pm
Re: PHP variable not showing
The success and error page should only be html and not contain any php due to it requiring to be processed on the server.
Re: PHP variable not showing
PHP variables are only valid within the current context.
If you want to transfer a value from one page to another, then you will need to use cookies or sessions.
Note that this is not specific to WWB.
If you want to transfer a value from one page to another, then you will need to use cookies or sessions.
Note that this is not specific to WWB.
Re: PHP variable not showing
thanks both for the explanation
Re: PHP variable not showing
Okay, i am now running into another problem.
The project has a page1 with an inline frame and a page2.
In page2 i have defined a php variable in the head and want to give it out in a html table in the same page.
No problem so far when i open the page2 directly, localhost/test/page2.php, the variable is shown.
Running the site from page1 and page2 is called into the iframe from a button then the variable is not there.
Something must undefine the variable.
I am new here and your advice is greatly appreciated.
The project has a page1 with an inline frame and a page2.
In page2 i have defined a php variable in the head and want to give it out in a html table in the same page.
No problem so far when i open the page2 directly, localhost/test/page2.php, the variable is shown.
Running the site from page1 and page2 is called into the iframe from a button then the variable is not there.
Something must undefine the variable.
I am new here and your advice is greatly appreciated.
Re: PHP variable not showing
An inline frame is a different page so variables from another page are not valid.
Please note that this is unrelated to WWB. We cannot teach you how to write PHP code.
But any code that work in another program will also work with WWB.
Please note that this is unrelated to WWB. We cannot teach you how to write PHP code.
But any code that work in another program will also work with WWB.
Re: PHP variable not showing
My post was not clear enough.
My code works well in the page2.php. localhost\test\page2.php manually started.
Loading it in the iframe frome page1 the vars are gone.
The code in page2.php have not changed.
Why?
My code works well in the page2.php. localhost\test\page2.php manually started.
Loading it in the iframe frome page1 the vars are gone.
The code in page2.php have not changed.
Why?
Re: PHP variable not showing
Without knowing the code, it will be difficult to say anything meaningful about this.
Note however that this has nothing to do with WYSIWYG Web Builder.
Note however that this has nothing to do with WYSIWYG Web Builder.