Newbie to PHP
-
Hi, I have a vb program which communicates with PHP but cut long story short it works :) What i want to know is if i develop this PH further can i create a login screen on the internet and allow the user to amend records? e.g if a teacher did a register of a class and messed it up could they login online and edit the absent and present column? Please note i am new to PHP! Thanks Dan
-
Hi, I have a vb program which communicates with PHP but cut long story short it works :) What i want to know is if i develop this PH further can i create a login screen on the internet and allow the user to amend records? e.g if a teacher did a register of a class and messed it up could they login online and edit the absent and present column? Please note i am new to PHP! Thanks Dan
The answer is "maybe"... If the records you want to amend are stored in a database that you have access to using PHP, then you can do whatever you like with them, assuming you have the required permissions. Sorry the answer is a bit vague, but you asked quite a vague question.
-
Hi, I have a vb program which communicates with PHP but cut long story short it works :) What i want to know is if i develop this PH further can i create a login screen on the internet and allow the user to amend records? e.g if a teacher did a register of a class and messed it up could they login online and edit the absent and present column? Please note i am new to PHP! Thanks Dan
Ya you can do it. But you need to store userid and password. If you want to use database then you can refer these links: http://php.thedemosite.co.uk/login.php[^] http://www.phpeasystep.com/phptu/6.html[^] http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/[^] If you dont want to use any database then you can do one thing(Try not to use this method). Make a text file at server side and read it to check id and password. But make sure that you set appropriate permission for that text file.
-
Ya you can do it. But you need to store userid and password. If you want to use database then you can refer these links: http://php.thedemosite.co.uk/login.php[^] http://www.phpeasystep.com/phptu/6.html[^] http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/[^] If you dont want to use any database then you can do one thing(Try not to use this method). Make a text file at server side and read it to check id and password. But make sure that you set appropriate permission for that text file.
Awesome thanks, So how would I go about allowing one of the columns to be edited? How do i allow the permissions? Thanks again Dan
-
Awesome thanks, So how would I go about allowing one of the columns to be edited? How do i allow the permissions? Thanks again Dan
offroaderdan wrote:
So how would I go about allowing one of the columns to be edited? How do i allow the permissions?
You'll also need a webserver. Think IIS if you're on Windows, Apache if you're on Linux. Next, you'd need to test if PHP is configured correctly to work with your database-setup. W3Schools would be a good place to start, they've got examples on interacting with a database to get you started[^] :)
I are Troll :suss:
-
Awesome thanks, So how would I go about allowing one of the columns to be edited? How do i allow the permissions? Thanks again Dan
it seems you want to use database and tables, first of all you have to install a server to that particular system. As you are newbie download easyphp or wampserver, install on that system. Dont worry about individual install of apache or mysql. This software will do it for you. And then simply follow tutorial given on their sites.
-
Ya you can do it. But you need to store userid and password. If you want to use database then you can refer these links: http://php.thedemosite.co.uk/login.php[^] http://www.phpeasystep.com/phptu/6.html[^] http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/[^] If you dont want to use any database then you can do one thing(Try not to use this method). Make a text file at server side and read it to check id and password. But make sure that you set appropriate permission for that text file.
WOW , I found these links brilliant :) however i was using link 2 http://www.phpeasystep.com/phptu/6.html[^][^] and have come across a few probems, i did exactly what the tutorial said. I then try and run the main_login.php in internet explorer, type in the name and password press login and it comes up with a pop up box saying do you want to open or save this file (check_login.php)????? i have already created this file exactly how it wanted? Does anyone know why this is coming up with this popup and how do i solve this problem Thanks Dan ps i am learning a lot about php keep up the good work :D
-
WOW , I found these links brilliant :) however i was using link 2 http://www.phpeasystep.com/phptu/6.html[^][^] and have come across a few probems, i did exactly what the tutorial said. I then try and run the main_login.php in internet explorer, type in the name and password press login and it comes up with a pop up box saying do you want to open or save this file (check_login.php)????? i have already created this file exactly how it wanted? Does anyone know why this is coming up with this popup and how do i solve this problem Thanks Dan ps i am learning a lot about php keep up the good work :D
You are trying to run the file using the web server aren't you? That is, the URL must start with http:// or https:// and not file:// - the PHP file has to be run through the web server. If you are running through the web server and still getting this, the PHP handler might be installed incorrectly, or the script is setting the wrong content-type header.
-
Hi, I have a vb program which communicates with PHP but cut long story short it works :) What i want to know is if i develop this PH further can i create a login screen on the internet and allow the user to amend records? e.g if a teacher did a register of a class and messed it up could they login online and edit the absent and present column? Please note i am new to PHP! Thanks Dan