Jump to content

Archived

This topic is now archived and is closed to further replies.

beaviss

add domain names from a form feedback and place in array

Recommended Posts

Hi

I 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 ? pleeeeeeeeeeeeeeeese

Regards
B

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
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.

Regards
B

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.