Originally Posted by
Gerard
And to think that I was about to tackle that little nightmare and along comes the solution
One question
"dont forget to change ,0,9 to ,0,x where x is the length of your 'allowcode' replacement string "
Can this point be clarified since I am only new to the whole php experience.
Thx
Gerard
I made it so that only certain page names will trigger this change. In case of the example it is allowcode. "allowcode" is 9 characters long. If I change that to "Form" then every form I create I could name Form1 or Form-1 or Form-Contact etc, then the forms will work. But you will need to change
Code:
$titlecheck=substr($var_pageDetails->fields[pages_title],0,9);
if ($titlecheck=="allowcode"){
to
Code:
$titlecheck=substr($var_pageDetails->fields[pages_title],0,4);
if ($titlecheck=="Form"){
Remember that "==" is a case sensitive evaluation.
I have used this to include dynamic content in an infopage (now ezpage), and to create a custom contact form with handler.
Bookmarks