Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Dropdown result in textfile

$
0
0

Hello,

 

I wrote a small exportscript for data. One of the values I have to export is called valuta. The export will result in an export of only the value: array.

It is a dropdown menu with predevined values. In the export I need the value.

 

My script:

 

$DataFile = "data.txt";
 
$valuta = $_POST['form']['Valuta'];
 
$fp = fopen($DataFile, 'w') or die('Could not open file!');  
fwrite($fp, "$valuta") or die('Could not write to file');  
fclose($fp);
 
Probable an easy one for someone not being a newbee with PHP?
 
Thanx in advance

Viewing all articles
Browse latest Browse all 13200

Trending Articles