Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7719179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:20:59+00:00 2026-06-01T03:20:59+00:00

I have a script that allows me to dynamically create lists via jQuery. I’d

  • 0

I have a script that allows me to dynamically create lists via jQuery. I’d like to create an .html file in a specific directory, then store that list in the file.

Thus: “A \n B \n C \n D …”

var dName = $(".C_D_Input input").val().trim();
var location = "file:///Volumes/EXT/Lists/" + dName + "/";
var words = $(".Input_Field").val().split(/\n/g);

$("#List_" + User).html("");

for (i = 0; words.length > i; i++) {
    $("#List_" + User).append('<span>' + location + words[i].trim() + '</span>');
};

Becomes:

<span>file:///Volumes/EXT/Lists/XXX/A</span>
<span>file:///Volumes/EXT/Lists/XXX/B</span>
<span>file:///Volumes/EXT/Lists/XXX/C</span>
<span>file:///Volumes/EXT/Lists/XXX/D</span>
...

Then the php would export the above to a new .html file. It may look strange, but I need it like that.

I’ve never scripted anything in php before, I’ve only fiddled with existing scripts. I understand the syntax, but not the necessary set up for running php scripts.

Any help/pointers would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T03:21:00+00:00Added an answer on June 1, 2026 at 3:21 am

    Post the results of your jQuery via an HTML form to your PHP script that does the file creation and saving. There are plenty of tutorials that show how to create and write files in PHP.

    <?php
    
    $list = $_POST['name_of_your_posted_list'];
    
    // Now cruise tutorials for saving the list to a file
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jQuery vote script that allows a user to vote on a
I have a simple script that allows someone to download a movie file to
I have a Bourne Shell script that has several functions in it, and allows
I have a PHP script that pushes the headers to allow a file to
I have a script that takes a table name and generates a control file
I have a script that allows users to 'save as' a pdf, this is
I have written up a python script that allows a user to input a
I have a tool, similar in ways to JSFiddle, that allows me to dynamically
I have an Ajax script that allows me to check a form without refreshing
I have been looking for a script that allows for a menu to show

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.