Jump to content

add domain names from a form feedback and place in array


beaviss

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.