1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

I have a project please help

Discussion in 'HTML & Website Design' started by sh4sh4, Jun 2, 2018.

  1. #1
    I need to fill the form with java script
    i need to read all field from text file line by line like a getline in C++. for Example:c:\x.txt

    [​IMG]
    1.png1280x800 35.8 KB

    [​IMG]
    2.png1280x800 21.2 KB


    Fields ids are are like below:



    <input type="text" required="" id="first_name" name="firstName" value="">
    text files first write will come here

    <input type="text" required="" id="last_name" name="lastName" value="">
    text files second write will come here
    SEMrush
    <input class="required" type="text" id="fbirthday" name="birthday" value="" data-toggle="datepicker" data-dp-months="1" data-dp-start="1918" data-dp-end="2018" data-dp-date="2000-06-02" data-dp-date-select="false" autocomplete="off">
    Ex:2000-06-20
    text files third write will come here

    <input type="text" required="" id="telephone" name="telephone" value="">
    Ex:+905065598665
    text files forth write will come here

    <input type="email" required="" id="email" name="email" value="">
    text files fifth write will come here

    <input type="email" required="" id="emailRepeat" name="emailRepeat" value="">
    text files sixted write will come here

    <input type="text" required="" id="uname" name="username" value="">
    text files seventh write will come here.

    <input type="password" required="" minlength="4" id="password" name="password">
    text files eight write will come here.

    <input type="password" required="" minlength="4" equalto="#password" id="password2" name="repassword">
    text files nineth write will come here.

    and click on ucretsiz kaydol
     
    sh4sh4, Jun 2, 2018 IP
    SEMrush
  2. mmerlinn

    mmerlinn Notable Member

    Messages:
    1,852
    Likes Received:
    213
    Best Answers:
    5
    Trophy Points:
    240
    #2
    Why would anyone want to fill those fields with java script? Are you trying to encourage someone to hack your website? Instead of filling those fields with java script code, would it not be safer and better to fill them with the proper data per the type of fields that you have?
     
    mmerlinn, Jun 2, 2018 IP
  3. kk5st

    kk5st Prominent Member

    Messages:
    3,420
    Likes Received:
    353
    Best Answers:
    27
    Trophy Points:
    335
    #3
    Further to @mmerlinn, why do things the hard way and as a defect attractor, when basic html forms already do it. How you deal with the data further is up to built in handling hooks (server configuration) or server side processing and storage.

    gary
     
    kk5st, Jun 3, 2018 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    24,535
    Likes Received:
    3,307
    Best Answers:
    94
    Trophy Points:
    615
    #4
    It's homework, the OP doesn't get to decide what or how to do something.

    We're not going to do your project for you but we're happy to help.
    Have you been able to read the text file and output it in a way your javascript can access it?
     
    sarahk, Jun 3, 2018 IP
  5. kk5st

    kk5st Prominent Member

    Messages:
    3,420
    Likes Received:
    353
    Best Answers:
    27
    Trophy Points:
    335
    #5
    Ah, I didn't catch that. I should have, but didn't.

    Leave it to an academic to come up with a silly, real world flub assignment. Fortunately my instructor was the chief programmer for a major airline, and also one of the 6(?) people who developed what became the Apache web server. As you can imagine, there was heavy emphasis on security.
     
    kk5st, Jun 3, 2018 IP
    sarahk likes this.