Anybody help me to put or suggest codes in my log-in form.
I made a free subdomain just for the sake i can publish it to internet. http://www.prifood.co.nf/
I will make a log-in account manually for the users and the users cant log-in if i didnt provide an account for them. When I click the “Let me In” button it only refreshes the page. What codes to be inserted for that?
The form tag should have an action attribute <form method="post">
the value can either point to the same page - if the same file processes the submit - or to a different file. eg. <form method="post" action="otherfile.php">
Is it possible sir that the .php file can be an .html file for the action?
What is the requirements sir in making a valid account manually?
This is my files of my web
I guess it could be possible to have the submit go to a plain HTML file in an Apache protected folder, but that would require another login and it would use the Apache login which wouldn’t match your site.
The usual way, for PHP sites, is to have the form action go to a PHP file that checks against a database and either goes back to the form if it fails to find a valid account, or goes to a “success” page if a valid account is found in the database.
The form may or may not use JavaScript to check for proper input values first, before checking the database, to save visitors the frustration of a failed attempt. eg. “you have caps locked”, “passwords must be at least 8 characters long” etc.
You have got a good start on HTML and CSS which is a very good thing. (it would be nice if more did) but there is a lot to building a site.
Maybe you could experiment with a pseudo-login using JavaScript to set a Cookie. But it wouldn’t be a “real” login. i.e. anyone and everyone could login, but they would need to login or turn off JavaScript to see other pages.
As Ryan said, to do it proper you really need some server-side language.
If this is for a real site you want up right away, then you should consider hiring someone or maybe look into using WordPress.
If it’s only because you want to learn and time is of no importance, then you’re in the right place. Just need to take it one step at a time.
Sorry Sir Mittineague, I dont know how check it.
Actually sir, im not so Pro of this web making, thats why i need a suggestion for this.
My manager told me to make a web for the Inventory Report. The purpose for this Web is to enable our Warehouse men encode their reports through that web.
Any suggestions Sir Ryan and Sir Mittineague for a form making software?
i think its difficult to make that form in the web.
Whew boy, that’s a tall order even for someone more experienced.
Keeping track of inventory will most certainly require using a database. Though you might be able to do without a registration step if there are only a limited number of users.
This isn’t something you’ll be able to do with copy-paste code. Well at least not done right in any reasonable amount of time.
Like the saying goes, Good, Fast, Inexpensive, pick two.
Send an email to your host and ask what server-side language they are using for the site. Most likely you do have PHP, but maybe not.
Just coding up that form or a series of forms to have all that would take a while, and the database architecture to go with it would be even more involved.
TBH I’m a bit surprised your Manager would task you with this.
This would be a monumental undertaking and take a team of developers at least a few weeks and I imagine would cost well into 5 figures.
Yeah… thats right. My Manager is looking forward for this because i have a background on making web page (but plain HTML and CSS only i knew) but the web page i made was not like what he wants now.
Heres my plain HTML and CSS web. (not Cool)
By the way Sir Mitt, can you help me how to run the .PHP file? or What is the requirements of running the PHP? or What to install? Please sir i want to learn about PHP. Thanks a lot.
You can test if your server has PHP by creating a very simple PHP file, upload it then view it in your browser. It is important you upload it to the server first, rather than viewing it locally.
Something like this should work:-
<?php $mystring="I have PHP!";?>
<html>
<body>
<h1>PHP Test</h1>
<?php echo $mystring;?>
<p>If you have PHP, it will say so.</p>
</body>
</html>
Save it as phptest.php or something, upload and view it.
As well as PHP, you will also need to learn about databases, such as MySQL.