Setting a select value in a txt file
Posted on 1999-07-12
This is what I want:
I have a file called:
This is what is in this file:
I want now two things:
I need to set 2 things:
$sign must be set to the valuesign of the line with is active!
In this example $sign would be "DM."
The same thing has to be done with the value $correctvalue.
In this example it would be $correctvalue = "1.00";
The second thing I want to do is the make a little form
with a selection option with all the currency options of the
file.txt file. The option to be selected is the value where
the active sign "x" is set in the file.txt file.
Something like this:
<OPTION selected>German Mark
What I now want is that when I choose an option out of the options
the chossen value will be set in the file.txt file.
For example when I choose "Dutch gulders" and then submit it, the
active value for Dutch guders will be set to "x" and the active value
for German Marks will become nothing.
Is this possible?
greetings Michel Weegerink