Hi all,
I have a hidden_field with a path as value (../models_women). I want to put a string in a textfile , using the path of the hidden field. My proplem know: The path of the hidden field will also be written in the textfile. I just want the hidden field not to be written in the textfile. Here is a snippet of the code:
print\"<form name=\\"$uploader\\" method=\\"post\\" action=\\"$php_self\\" enctype=\\"multipart/form-data\\">\";
print\"<input type=\\"hidden\\" name=\\"pathh\\" value=\\"$mpath\\">\";
if(isset($add_model))
{
$name = str_replace(\".\", \"\" ,$name); // remove that nasty point after lastname letter !
$reader = str_replace(\" \", \"\", $name.\".txt\");
$blank_rem = str_replace(\" \", \"\", strtolower($name));
array_pop($HTTP_POST_VARS); // remove last element of the array
$fp = @fopen($pathh.strtolower($reader), \"w\");
while(list($key) = each($HTTP_POST_VARS))
{
if(empty($HTTP_POST_VARS[$key]))
{
fputs($fp, $nodata.\"\n\");
}
else
{
fputs($fp, $HTTP_POST_VARS[$key].\"\n\");
}
}
}
print </form>;