Jump to content


Photo

add domain names from a form feedback and place in array


  • Please log in to reply
2 replies to this topic

#1 beaviss

beaviss
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 12 June 2006 - 07:05 PM

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

#2 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 12 June 2006 - 08:45 PM

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.
<input type='text' name='domain[]' >
<input type='text' name='domain[]' >
<input type='text' name='domain[]' >
<input type='text' name='domain[]' >

Now you have a ready-made array with

$domain_array = $_POST['domain'];

If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#3 beaviss

beaviss
  • New Members
  • Pip
  • Newbie
  • 9 posts

Posted 12 June 2006 - 08:52 PM

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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users