The iRev server variable $_SERVER resembles the server variables (globals) of the same name in PHP, and contains many similar elements within it's array - with several notable exceptions.
I often use $_SERVER['PHP_SELF' ], $_SERVER['SCRIPT_FILENAME' ], and particularly $_SERVER['SCRIPT_NAME'] as a means of referring or submitting a form to the currently executing script in PHP.
Code: Select all
<?php
$script = $_SERVER['SCRIPT_NAME'];
// then elsewhere in the script when defining a form...
<form action="<?php echo $script; ?>" method="post">
// form content here...
</form>
Can you can post or refer a script to itself in iRev using another technique?
Any assistance greatly appreciated.
Merry Christmas, Andrew