<p>Click the 'Browse' button to locate the csv file containing the keywords and optional redirect urls on your computer.</p>

<label for="csv_file">Keyword CSV File</label>

<input name="csv_file" id="csv_file" type="file" size="35" /><br />

<p class="desc">The file uploaded MUST be a .csv file.</p>

<label for="sep_by">Fields are separated by</label>

<select id="sep_by" name="sep_by">

<option value=",">Comma ( , )</option>

<option value=";">Semi-Colon ( ; )</option>

</select><br />

Here is the rest of my code. (probable not the best looking but this is my first try with autoit) All the rest of the fields are filled ok and i can fill the first part if i just send some text i just cant pull the info from the csvfile.

Also, I think you'll run into problems with your for loop because you have file handles you've opened, like in $csv = FileOpen("csv.txt", 0) and then you go and reuse the variable for the actual contents you're trying to read: $csv = FileReadLine($csv). I'm sure this guarantees that the handle now no longer points to the file so there's no way you can read from it on the next step through the loop.

And finally, can you post a mockup sample of the various files your reading from?