+ Reply to Thread
Results 1 to 7 of 7

Thread: Input script

  1. #1
    c740015 is offline x10 Sophmore c740015 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    111

    Question Input script

    Hi im trying to make a multiple input script..

    Bascially i want a big input box where i can paste multiple lines of text
    the text i will be pasting will be codes eg

    123asd-2334ccc-3344ffv-3334ffc

    the codes are 32 digits and 3 -

    But I wanna submit more than 1 at a time to a list of codes

    123asd-2334ccc-3344ffv-3334ffc
    123asd-2334ccc-3344ffv-3334ffc
    123asd-2334ccc-3344ffv-3334ffc

    basically i want the codes to be submitted

    and then displayed on another page where i can sort them into catagory's
    eg EU ,, NA ,, JP ,, HK

    so on the page after submitted it would show the code and have a option for me to move it into a certain catagory

    and then obviously have a catagory listing that i can view all the codes in..

    I am really stuck at this and cant seem to find anything anywhere...

    Basically have a gallery of images and they all have a unique code.. i wanna place them
    into catagorys of what region the images work in..

  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Input script

    If I'm understanding the problem, a textarea is what you're looking for. On the server, split the field value on whitespace to get an array of codes.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    c740015 is offline x10 Sophmore c740015 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    111

    Re: Input script

    Yeah that right a multiline textbox..

    so i can submit multiple codes and then have something that i can press to put them in a catagory...

    Is there anyway i can do this?

  4. #4
    xav0989's Avatar
    xav0989 is offline Community Public Relation xav0989 is just really nice
    Join Date
    Jul 2008
    Location
    ifk
    Posts
    4,438

    Re: Input script

    Yes. As misson pointed out, have a textarea to submit the codes and put a space between each code. next, on the server-side, the content is split into an array based on the space. Next, the whole classification interface would be an AJAX application with some client and server side programming.
    Xavier L | Community Public Relations Manager (Free Hosting Support)
    █ Yes, my position is too cool to even exist!
    How am I helping? Rate this post by clicking the icon below! (this is even better than "liking" a post)
    Terms of Service | Acceptable Use Policy | x10Hosting Wiki

  5. #5
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Input script

    What is the goal of the script? To put entries in a mySQL db? Put images in separate directories?

    Can images have more than one catagory?

    Are the images on your local computer or on the server?

    Do you want the script to populate the textarea with image names from a db or directory?
    Nothing is always absolutely so.

  6. #6
    c740015 is offline x10 Sophmore c740015 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    111

    Re: Input script

    Quote Originally Posted by descalzo View Post
    What is the goal of the script? To put entries in a mySQL db? Put images in separate directories?

    Can images have more than one catagory?

    Are the images on your local computer or on the server?

    Do you want the script to populate the textarea with image names from a db or directory?
    The main goal is yes.

    to have a database of all images...

    also the images will be in multiple catagorys

    the multi txt box is to that when people submit a huge list of ITEM CODES.. which are the links to the images.
    they can then be sorted into catagory's with a click of a button.. and they can have multiple catagory's.

    They are for items that you can use on the playstation are there seperated into regions..

    for example one item might work in 3 regions.. while another may only work in 1...

    each time a list of codes are submitted on a webpage.. i want to have an admin panel or even a link thats not public so i can sort them into a catagory that works...

    I dont even need the images i could use the original image..

    so i want item ID which will be a 32 digit number and Image name which is always small.png or similar..

    and beable to sort them into a catagory.,.

    this would be amazing as it would save huge amounts of time.. and it would be so easy to update and maintain..

    Thanks.

  7. #7
    c740015 is offline x10 Sophmore c740015 is an unknown quantity at this point
    Join Date
    Jul 2009
    Posts
    111

    Re: Input script

    Can anyone help me with any of this?

+ Reply to Thread

Similar Threads

  1. [OFF] selling some hot script 500 credits each
    By neteater in forum The Marketplace
    Replies: 8
    Last Post: 03-24-2009, 09:08 PM
  2. CRON job : script timeout ?
    By webtomata in forum Free Hosting
    Replies: 4
    Last Post: 09-12-2008, 04:23 PM
  3. Access to 300+ PHP scripts (2500 credits)
    By jonathanyaniv in forum The Marketplace
    Replies: 11
    Last Post: 06-03-2008, 10:58 PM
  4. Replies: 8
    Last Post: 12-03-2007, 04:12 PM
  5. Server UP time Script
    By dharmil in forum Scripts & 3rd Party Apps
    Replies: 2
    Last Post: 04-03-2006, 04:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers