how to make a html login page that connect to database - html

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.

Nova
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.

Related

Form action wordpress

My wordpress site has one contact form and even I have another website (Used html code).
I called wordpress form in html using id,Now I added captche to both the site because of that not abled to submit the form showing an error. How can I call that form using Iframe and while submitting the button in my site(HTML) bth the form(wordpress site and my site) the form should take the action . Need to show thank you message in the site.

Slim in PHP problems with redirecting to signup page

So by sending localhost/path/home will take me to the homepage, login and signup is included, so when I click either login or signup will sent out localhost/path/login or signup that will take me to login or signup page.
Here is the problem:
In login.html I have html tag should forward to the signup page.
<p>Don't have an account yet? SignUp here.</p>
However what happen is that localhost/signup is sent out, when I try to change it to:
<p>Don't have an account yet? SignUp here.</p>
It actually sends out localhost/path/path/signup, anyone knows how to solve this?
Well, you shouldn't have the first /slash/ there... If they are on localhost/path/login, the link should just be href="signup" so that it goes to localhost/path/signup... On a website, if you were on website.com/path/login, you would click "href="signup" and be taken to website.com/path/signup
<p>Don't have an account yet? SignUp here.</p>
localhost/path/ is the current directory of the file being accessed and is the same as website.com/path/ . So, knowing this - you do not need to include /path in your URLs, because the page being displayed is already in /path/ folder, so your links can be directly relative to other files inside the same /path/
If you're on localhost/path/file.html for example, you can access any file also in /path/ by just calling the file name (with extension if required) - no need for full path. If you wanted to do a link to a file in another folder (such as localhost/path2/file2.html) you could link to it from path/file.html like this:
File 2
I hope this helps you understand relative file includes, links, images, etc - The logic is very similar for all of those :)
You changed it from a domain-relative link to a directory-relative link. Change it to:
<p>Don't have an account yet? SignUp here.</p>
to fix the problem.

Iframe button trouble

My first question here. I'll try to explain my situation in the best possible way (with the same blindfolds I have with their system).
My client have a setup where on their homepage www.example.com (index.html) have an iframe that holds the main content except the main navigation. I have access to change the content in their iframe page, called "home_content.html"
In the main navigation on index.html there is a link to a user login page www.example.com/login. When the user logs in, it redirects back to the page the user previously was on. So if I'm on www.example.com, click and go to www.example.com/login, login, I then return back to www.example.com
My issue is that If I place a link in my iframe page pointing to the login page, when logged in. It returns me to the iframe url = www.example.com/home_content.html rather then back to "Home" www.example.com
Is there a way for me with only access to home_content.html be able to "trick" the system to think that the link clicked here actually comes from index.html so that when redirected back after signing in I simply return to www.example.com?
Sorry if this is a bit unclear. Basically I want a click from an iframe to be registered as if it was clicked from its parent.
Any help is much appreciated.
Regards,
Chris

Sending feed back from website to any email

i want to include a text field called feed back and a button called submit in my html page.
now how to redirect this feed back entered by user of my site to my business email?
You can do this with the built in HTML form tags, take a look at this example.
Just change action="MAILTO:someone#example.com" to include your business email address instead.

Prevent page load on refresh

I have a simple html form which submits to the database on submit click.
It's working fine till here but after that when I refresh the page or page loads again,the values resubmit.How to rectify that?
After u submit the page and data get stored in the database successfully reload the same page
using
echo "<script>window.location='yourpagename.php'</script>";
After the form has been submitted, redirect to another page. Then refreshes will not matter.
See Post/Redirect/Get on Wikipedia for details on this pattern.