1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

can someone help me with a php form?

Discussion in 'BlackHat Lounge' started by webwhizz, Mar 5, 2012.

  1. webwhizz

    webwhizz Power Member

    Joined:
    Apr 3, 2011
    Messages:
    696
    Likes Received:
    656
    Occupation:
    P-R-0
    Location:
    scotland
    Hi,

    im trying to make a form that submits hidden data, so the form displays one box for an email and when they click submit i want it to send 100 usernames to there email, i can do this with a text area box but i dont want to keep having to paste the user names in everytime,

    i found this method

    <input type="hidden" id="user1" name="joebloggs" value="joebloggs" />

    but this means i need 100 lines like that right?

    is there a way the form could upload the data from a txtfile? (hidden)
    but so it shows up in there email like a list

    user1
    user2
    user3
    user4

    any help or examples, would be much appreciated thanks
     
  2. webwhizz

    webwhizz Power Member

    Joined:
    Apr 3, 2011
    Messages:
    696
    Likes Received:
    656
    Occupation:
    P-R-0
    Location:
    scotland
    in case your wondering, i want it for twitter users, so they enter their email address ,and in return they get sent a small followback list for a certain niche, just something for my blog :)
     
  3. ExecutiveCloser

    ExecutiveCloser Regular Member

    Joined:
    Jul 20, 2011
    Messages:
    308
    Likes Received:
    156
    Occupation:
    CEO of *********
    Location:
    East Coast
    yes this is very simple. Might take a few hours of work but just search for each individual element you require.
     
  4. ExecutiveCloser

    ExecutiveCloser Regular Member

    Joined:
    Jul 20, 2011
    Messages:
    308
    Likes Received:
    156
    Occupation:
    CEO of *********
    Location:
    East Coast
    you will use PHP to call the txt file into the message as a variable then you will have it send in the send.php script or the action script you have set in place.

    Each form must have a front end and a back end sending agent.

    Add in each element with your sending.

    Sorry cant help with much more than that as I have time constraints right now.
     
    • Thanks Thanks x 1
  5. webwhizz

    webwhizz Power Member

    Joined:
    Apr 3, 2011
    Messages:
    696
    Likes Received:
    656
    Occupation:
    P-R-0
    Location:
    scotland
    Hi, i can only find stuff about writing to a txt file

    $fh = fopen("users.txt", "a");

    fwrite($fh, $data);

    i'll keep playing with it, im sure i will figure it out eventually, Thanks for help