Jump to content

How put Raw php in pages?


ipbfuck

Recommended Posts

Posted

Hi!

Atm i've used iframe for long php script in pages, but this isn't ever the best solution (eg: https://laltroweb.it/webmster-tool/thumb-your-pages/ ).

My request is: how i can write raw (real) php code directly inside ip.pages?

I've try with "insert" and work fine (i can insert a script with php code), but can cause issue if this script has a form.

-

Write php directly inside pages can be the best solution in some circumstances.

Someone can try to explain how i can this?

<?php *code ?> not work.

Nothing (only simple code) not work... :/

 

Thanks in advance,

S.N.

Posted
23 minutes ago, laltroweb.it said:

I've try with "insert" and work fine (i can insert a script with php code), but can cause issue if this script has a form.

Can you clarify what problems you have with forms and inserts you wouldn’t have if the code was directly in the page?

 

23 minutes ago, laltroweb.it said:

<?php *code ?> not work.

I don’t think you can do that. The template parser can’t deal with that. However, you can put your PHP code in a block (where PHP is an option) and then embed that block in any page. 

Posted

if form put something in get var this cause problem (var not valid and other issue, no problem from php script).

anyway, thank'u very much! now ill try with block :)

 

Posted

@opentype: sorry, same problem form me. if is present a form with $_get (self script) this cannot found results. but script work fine if i call directly via php (not inside ipb).

maybe, in form action get, i need to call ipb index.php, actual page, other? :|

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...