03-14-2011, 03:28 PM
|
#3 (permalink)
|
|
The Contributor
Join Date: Feb 2010
Posts: 69
Thanks: 16
|
Ah great stuff that does make sense... i did do a bit of a short test on this with just
PHP Code:
<form action="<?php echo __FILE__; ?>" method="post" enctype="multipart/form-data">
<input name="test1" type="text" />
<input type="submit" name="save" value="Save Template script" />
</form>
<?php
if(isset($_POST['save']) && !empty($_POST['save'])) {
$displaytext = $_POST["test1"];
}
echo $displaytext;
?>
and this pulled out a stupid url of page not found with the url of http://www.tutorials.tentun.co.uk/ho...tdocs/test.php
which made me replace the __FILE__ with 'test.php' instead which made it work... any idea why __FILE__ is doing this? and is the 'test.php' ok to use? never the less i am please with the outcome its exactly what i need!
|
|
|
|