<form id="form1" name="form1" enctype="multipart/form-data" method="post" action="affiliateupload.php"> Your URL<br> <input type='text' name='url'> </form>
and I have this code so far to write the actual txt file in php
<?php $url = ??? $url = '$dir/url.txt'; $handle = fopen($url); fwrite($handle, $text); fclose($handle); ?>
ok what would I set the $url variable to if I want it to take the text from the form "url" and write it into a text file? I am getting better at php but by no means good enough to do everyting quite on my own yet. Any help would be appriciated thanks!