Webmaster Sun Login
Not a member yet? Sign up

How to auto add different content to each html page?

  • HOME
  • FORUMS
  • WHAT'S NEW
  • BLOGS
  • MARKETPLACE
  • ADVERTISING
  • SPECIAL OFFERS
  • WEB HOSTING
  • QUICK MENU
  • REGISTER HERE - Join us for FREE
Results 1 to 3 of 3
    Stick this thread
  1. #1
    Join Date
    Jan 2018
    Posts
    1
    Thumbs Up/Down
    Received: 0/0
    Given: 0/0
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to auto add different content to each html page?

    Hello! I need to copy a few lines of text from my txt files to my html pages. In all these files the text is different. It needs to be distributed randomly, without repetition, on html pages.

    With the help of which program can this be done?

  2. #2
    Join Date
    Jan 2018
    Posts
    4
    Thumbs Up/Down
    Received: 0/0
    Given: 0/0
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If the HTML files are on a web server, you should use filezilla to add the content. However, if it on your computer, bracket will do the work. (bracket.io). I hope that answers you question.

  3. #3
    Join Date
    Apr 2016
    Location
    United States
    Posts
    578
    Thumbs Up/Down
    Received: 355/0
    Given: 38/0
    Thanks
    29
    Thanked 171 Times in 122 Posts
    If I understand you correctly, you will want to do this using a web processing language.

    I would recommend the most popular language on the web, PHP.

    PHP can read the text file, have PHP take the lines that are generated build an array with each line assign a random id, using the random id number place that text randomly into text fields on the web page or multiple web pages.

    1. Read the text file
    2. Build an Array with the text values.
    3. Using the Unique ID of the values in the Array build a random generator of the values.
    4. Select a value from the random generator, assign the text to a text area on the web page, insure that the random value has not been previously assigned, build an array with the values that have been assigned.
    5. Add the unique ID to the assigned array.
    6. Repeat until the text fields array is empty.

    It would take a little code and some serious testing to make sure it was operating correctly but it could be done without a lot of difficulty. There are probably 100's of different ways to do this, this is just one quick flow example.
    Mike
    Learn Web Development - OnLine Video Training OnTargetHTML5
    Have Questions On Training or Web Development: Contact Mike

Newer Threads

  1. integrisuite
    gracadedues
    Replies: 8 | Views: 1367
    Last post by gracadedues, 11-13-2018, 04:16 PM
  2. LeatherCrafting
    Web Hosting Company Partner
    By LeatherCrafting in forum Business Partners
    radwebhosting
    Replies: 1 | Views: 919
    Last post by radwebhosting, 02-06-2018, 02:25 AM
  3. vishwa
    Selling Selling imbloggingtips.com
    By vishwa in forum Domains
    vishwa
    Replies: 5 | Views: 1848
    Last post by vishwa, 07-04-2018, 08:47 AM

Older Threads

  1. Vibol
    vishwa
    Replies: 4 | Views: 744
    Last post by vishwa, 01-31-2018, 09:00 AM
  2. DaBillsBoy
    DaBillsBoy
    Replies: 5 | Views: 756
    Last post by DaBillsBoy, 02-05-2018, 03:29 PM
  3. Domain Solutions
    Domain Solutions
    Replies: 0 | Views: 559
    Last post by Domain Solutions, 01-27-2018, 06:49 PM
  4. wms
    wms
    Replies: 16 | Views: 4629
    Last post by wms, 01-20-2019, 06:19 AM
  5. klifecareindia
    SEO For Healthcare
    By klifecareindia in forum Google
    KareemCartwright
    Replies: 11 | Views: 1431
    Last post by KareemCartwright, 07-24-2018, 10:30 AM

Latest Threads

  1. shoptechmedia
    shoptechmedia
    Replies: 0 | Views: 7
    Last post by shoptechmedia, Today, 01:27 PM
  2. ethelglover
    ethelglover
    Replies: 0 | Views: 95
    Last post by ethelglover, 10-19-2019, 10:48 AM
  3. susanburling
    susanburling
    Replies: 0 | Views: 46
    Last post by susanburling, 10-18-2019, 09:10 AM
  4. susanburling
    susanburling
    Replies: 0 | Views: 42
    Last post by susanburling, 10-17-2019, 01:17 PM
  5. jowel
    jowel
    Replies: 0 | Views: 90
    Last post by jowel, 10-16-2019, 01:09 PM

Similar Threads

  1. WebsiteIntegrations
    WebsiteIntegrations
    Replies: 0 | Views: 1154
    Last post by WebsiteIntegrations, 12-06-2017, 10:04 AM
  2. harrygreen90
    Mike_Brown
    Replies: 4 | Views: 1568
    Last post by Mike_Brown, 05-05-2016, 02:59 PM
  3. arronmattwills
    aframalik
    Replies: 4 | Views: 2186
    Last post by aframalik, 07-04-2014, 03:44 AM
  4. shophia
    md_lee
    Replies: 1 | Views: 1482
    Last post by md_lee, 04-28-2013, 10:18 AM
  5. Frank
    Frank
    Replies: 0 | Views: 2575
    Last post by Frank, 01-22-2013, 08:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Internet Marketing Forum

Webmaster Sun is a forum where you’ll find in-depth discussions and resources to help you succeed on the web whether you are new or experienced. You’ll find it all here. With topics ranging from internet marketing, search engine optimization, social networking, make money online, web hosting, affiliate marketing as well as hands-on technical support for web design, programming and more. We are a growing community of like-minded people that is keen to help and support each other with ambitions and online endeavors. Learn and grow, make friends and contacts for life.

Come Hang Out With Us

    Facebook Twitter Webmaster Forum Google+

    Webmaster Sun Logo
Copyright ©2012 - 2019, WebmasterSun.com. All rights reserved. Internet marketing forum for internet marketers, webmasters, web hosting providers, designers and affiliate marketers.

Welcome to Webmaster Sun

The World's Number 1 Webmaster Community, SEO and Marketplace

Log in!

Continue with Facebook
Continue With Email. By signing up you indicate that you have read and agree to the Terms of Service and Privacy Policy.

Sign in Manually

Need an account? Sign up now!