|
i have two files:
First:
--------------
<form action="admin_add_drink.php" method="post">
Short Drink:<input type="radio" name="shortd" />
Long Drink:<input type="radio" name="longd" />
<br></br>
Drink Name <input type="text" name="name" />
<br></br>
Ing:
<br></br>
<textarea name="ing"> </textarea>
<br></br>
Opis:
<br></br>
<textarea name="dis"> </textarea>
<br></br>
<input type="submit" />
</form>
--------
second file
$file=fopen("$_POST[name]","w")or exit("no way !");
1.Those two write a file in the root directory with a name you put in "input". The thing is that I dont know how to put it, in a directory chosen ealier (Those two radio buttons). You meant to chose a radio button(long drink directory/short drink directory) that choses a directory and the script should write that new file in there.....
Dose any one know how to do that??
|