asked    Daniel     2018-10-22       html       84 view        1 Answer

[SOLVED] how to make a html login page that connect to database

Lets say I have a login.html page with a html template

And I want to use that login.html template to login to another login.php page.

Say, when a user types in email and password in login.html, I want that login.html page to type the same email and password in my another website which has login.php page.

For this example, lets take blesta - it has a login.php page but the landing page is simple and is not beautiful.

I have another html page named login.html which looks sleek and beautiful but I don't want to transfer users to blesta login.php and then they enter their credentials but rather I want them to enter those credentials in login.html page and those credentials be automatically typed/used in blesta's login.php page and then they get redirected/transferred to dashboard.php inside blesta.

Is it possible?

I tried too much searching but couldn't find any answer yet.

  1 Answer  

        answered    Maurice     2018-10-22      


HTML is a Markup Language not a programming language, so it can't connect directly to any database.

But you can send the form's action of you login.html to the same of the login.php of blesta and add the same name of each input.

Your Answer

 2018-10-22         Moira

How to access SuperObject object if key conatins dots (e.g. Ip address)?

The code fails to access JSON object if it's key contain dots.JSON:"TableTraps": { "": { "Vars": [ "alarmDescription", "alarmPositionUnit", "alarmChannel" ] }, "": { "Vars": [ "alarmDescription", "alarmPositionUnit", "alarmChannel" ] },}Pascal SuperObject code:TableTraps := LoadFromFile();TrapOID := '';trapInfo := TableTraps.O[TrapOID];Results in trapInfo == nil but I expect SuperObject instance.I've tried to wrap the json key:TrapOID := '"' + '1.3.6....
 json                     1 answers                     61 view
 2018-10-22         Colby

Json Value doesn't assign to the List [HttpPost]

Since am new to web api, i am finding some difficulty to post json List to Web API.Json[ { "ItemId":20, "RegId":"VISIT0001778", "BLoadDetailId":"8/31/2018 12:28:10 PM", "OrderReferenceNo":null, "StartTime":"0001-01-01T00:00:00", "InvalidItemMsg":"", "InvalidItemstatus":false, "BLoadingBay":"Chute 009", "BLoadingBayCode":null, "BLoadingBayID":7, "RFID":7123, "GangId":2, "BOrderTransfer":false, "BLoadedBags":0.0, "BRemainingBags":0.0, "BConversionValue":null, "WHid":2 }]class : publi...
 c#                     3 answers                     60 view
 2018-10-22         Barton

display number of rows with certain value in gridview

I used the following code to display the total number of rows in gridviewLabel1.Text = "Total Number of Rows: " + e.AffectedRows.ToString();Now I have a column [NewColumn] with two values, "Yes" and "Null", how can I know the number of rows with the value "YES", and display as "The Number of YES rows: [rows with YES]/[total rows]"? You can use the RowDataBound event for that. In there check the column NewColumn for the correct value and increment the totalRowsWithYes = 0;protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e){ if (e.Row...                     1 answers                     66 view