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']
                     );
?>

Link to comment
Share on other sites

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 !!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.