Jump to content

[SOLVED] PHP tag in an array


ShoeLace1291

Recommended Posts

This is what it looks like:

What would be the correct syntax for this?

 

thats like saying "the door is green, is the door green?"

 

 

but i assume you mean this

 

<?php
$temps = array(
                      'FORM_ACT' => $_SERVER['PHP_SELF']
                     );
?>

Well, the file that will use this is a tpl file, so php code won't work unless there's a tag.  I don't want any php in my tpl files so the code <form action='FORM_ACT' method='POST'> will be <form action='<?PHP $_SERVER['PHP_SELF']; ?>' method='POST'>  Get what I mean?

What!

 

Well, the file that will use this is a tpl file, so php code won't work unless there's a tag.  I don't want any php in my tpl files so the code <form action='FORM_ACT' method='POST'> will be <form action='<?PHP $_SERVER['PHP_SELF']; ?>' method='POST'>  Get what I mean?

 

you lost me.. you don't want php code in their.. so you added php code !!

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.