I will try to explain the best as i can :
I have an html form and inside of that form i have a "select a state" option:
Code: Select all
<select name="State">
<option value="0" selected="selected">Select a State</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
etc.....
</select>
Inside of the csv file i have this
Code: Select all
state, ip
AL,67.100.244.74
AK,68.20.131.135
AK,64.134.225.33
etc.......
So an example would be: customer fills out the html form and selects Alabama as a state. they then submit the form and the form comes to the csv file where it sees the state Alabama (AL). it then collects the ip and submits that to my email address along with the rest of the html form information (name,email,etc...). It also needs to randomly choose an ip from Alabama because in the csv file i have Alabama (AL) multiple times, so i just chooses anyone of the Alabama ip's
I hope i am making sense
Thanks for all your help
Ali