beaviss Posted June 12, 2006 Share Posted June 12, 2006 HiI need a littl help with a small script I am trying to make.Basically I have a webpage with a textarea and submit button,I then pass the results to the process.php form I created.I need help now sorting the information into an array and then,passing each one to the [a href=\"http://co.za/cgi-bin/whois.sh?Domain=domain.co.za\" target=\"_blank\"]http://co.za/cgi-bin/whois.sh?Domain=domain.co.za[/a]and then looking for text "not paid" on that form.Then would like to have a list of all domains that need to be paid, and a list of domains already paid.Can someone help ? pleeeeeeeeeeeeeeeeseRegardsB Quote Link to comment https://forums.phpfreaks.com/topic/11801-add-domain-names-from-a-form-feedback-and-place-in-array/ Share on other sites More sharing options...
Barand Posted June 12, 2006 Share Posted June 12, 2006 Depends on how the domain names are entered in the textarea.Is it one per line, comma (or other character) separated?Basically a text area gives too much freedom.If you used a series of text boxes you'd have more control.[code]<input type='text' name='domain[]' ><input type='text' name='domain[]' ><input type='text' name='domain[]' ><input type='text' name='domain[]' >[/code]Now you have a ready-made array with[code]$domain_array = $_POST['domain'];[/code] Quote Link to comment https://forums.phpfreaks.com/topic/11801-add-domain-names-from-a-form-feedback-and-place-in-array/#findComment-44745 Share on other sites More sharing options...
beaviss Posted June 12, 2006 Author Share Posted June 12, 2006 Hi,Yes, its just one per line.I just need a simple way to get about 30 domains at a time into somthing, and then post it to process.php for it to take care of the repetitive tasks.If I had to type out the domains one per box, it would be easier to just do it at the registrar the I have.I really need some help and advice on making my life easier.Is there anything else you can suggest ?Also how would I get each domain name in the array to be passed one by one to [a href=\"http://co.za/cgi-bin/whois.sh?Domain=domain.co.za\" target=\"_blank\"]http://co.za/cgi-bin/whois.sh?Domain=domain.co.za[/a]and then looking for text "not paid" on that form and have the results emerge somewhere.RegardsB Quote Link to comment https://forums.phpfreaks.com/topic/11801-add-domain-names-from-a-form-feedback-and-place-in-array/#findComment-44746 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.