Skip to main content
Sean McCormack
Community Expert
Community Expert
August 20, 2009
Answered

[Web]Lua variable calls in PHP

  • August 20, 2009
  • 3 replies
  • 5024 views

One thing that's been annoying me recently is that I can't use call lua variables inside a PHP script.

If I used <%= variable  %> It just writes out <? lua variable > and $variable is taken as text.

Am I missing some way it can be done? Really all I'm trying to do is prevent the end user having to hand edit their email address in the PHP file.

any ideas?

This topic has been closed for replies.
Correct answer Anna_A__Borska

Hi Anna,

I still end up with the same problem:

$email = $_POST['email']; $subject = $_POST['subject']; $from = $_POST['from']; Gets converted to

Scanning file for viruses.

Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.

OK

This file cannot be downloaded

Sorry, our virus scanner detected that this file isn't safe to download.

OK