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 7582147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:21:58+00:00 2026-05-30T18:21:58+00:00

I want create a form to edit the style and html content of a

  • 0

I want create a form to edit the style and html content of a template web page.

Form Page has:

  • An input to enter a h1 heading for the page
  • A dropdown box to choose a font for the h1
  • A dropdown box to select text size
  • An input to enter a subtitle
  • Controls to change formatting
  • etc

This generates Page B, which is mostly formatted already with css, but uses the inputs from the form to edit some styles, like fonts and colours.

I could do this easily if I just posted the the form to Page B, and inlined the css with something like this:

<h1 style="font-size: <?php echo $_POST['h1-font-size'] ?>pt">
    <?php echo $_POST['h1-title']?>
</h1>

But I would prefer to keep the formatting separate from the HTML as these pages may need to be edited by hand in the future. I also want to save the resultant html page and css file for future use.

What is the best and easiest way to do this? I could paste the whole css file into PageB and make page B write it to the server with the specified changes, but this doesn’t seem like a very elegant way of doing things.

Background: comp-sci degree, not much web experience.

  • 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-05-30T18:21:59+00:00Added an answer on May 30, 2026 at 6:21 pm

    I’d suggest set up a stylesheet with all the properties you want to be able to have edited.

    Create a ‘field’ in a database (or flat file) for each field you want to be editable from the front-end.

    Then make your interface for inputs match these fields.

    Save your inputs back into the database.

    Write an output function to write your css files from the database if you want to save them down again.

    This depends on the scale of the task as to which way will save you the most time now and in the future.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a form which has a text entry box where a
i want to create a form that has two submit buttons, but each one
I want to create a form in which if the User presses Enter the
I want to create an input form that will take the input text and
I'm trying to make a web page that only has content within the page
I'm trying to create a html tabbed form where each named tab has a
I want to create an edit form for a single field in my model,
i want create one simple windows form ,it just contain Editcontrol(textbox),Static Edit(label),Button (Name of
I want to create a search form. When I enter my query and press
I want to create a form using an unordered list ul must have only

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.