Click here to Skip to main content
13,736,643 members
Rate this:
Please Sign up or sign in to vote.
Hey guys and girls, i am creating some kind of web-application with basic javascript/jquery and html + css . I did some researche online and really couldnt find anything to my specific needs.

Is this even possible in wordpress? Or do i need to create my own sql database and program a user login etc etc.

What I have tried:

i have created the application in a .html page without external stylesheets.
Posted 8-Nov-17 1:54am
Updated 8-Nov-17 2:49am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Yes, HTML files do not require PHP processor to execute the code, you can have static files in HTML.

You can also stylize those documents with the same CSS files that your WordPress website has, and you can add the same JavaScript library (or more) if needed. Linking them is as easy as,

<link rel="stylesheet" href="/stylesheet.css" />
<script src="/scripts.js"></script>

This will merge everything, just the file will not longer need to be processed. However, there are a few other problems:

* No templating with PHP (include etc.)
* Writing the code again, for the templates.
* More JavaScript to do the job of PHP (user management, sessions, etc.)

Lastly, why do you need database? Since this is all static website, there is no need to add any database anywhere. You can create HTML documents, stylize them with CSS and manage them with JavaScript — but that depends on where you are hosting the website as well. However, if you just want a single page of HTML and rest with PHP, then just add an HTML page. :laugh:

However, if you do want to use databases and other dynamic resources, then consider using Node.js. It is a JavaScript-for-server-side framework that you can use. It can integrate with the platform and provide you with the best options of web development if you only know HTML, CSS and JavaScript. You can use SQLite databases, that do not require complex database setup at all.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180920.1 | Last Updated 8 Nov 2017
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100