I'm just starting with PHP, so sorry if I'm confusing.
I created my index page (index.php) by laying it out with HTML and Styling it with CSS.
I have a "couple" of questions that I would like to ask to get a basic idea of what I will need to look at or do.
So on my home page (index.php) I have a signup and login form. I'm not necessarily worried about the Sign Up form just yet, but more on the log in form. I also found a tutorial on how to do this, but it works a little differently than how I want it to work.
I need the user to log in and go to the control panel (maybe control.php). I'm guessing that's fairly simple. But if the user makes an error, I need the error message to display on the index page (under the log in form). So do I need to create a separate page named login.php to set the action on the form, or should I set the action to index.php and just put the log in code on the home page.
Another thing is a language changer. To start with, I'm offering this website in French, Spanish, and of course English. I have a selection box that onchange runs a javascript function that changes all of the text (using .InnerHTML) to that certain language, but I want to make sure the user doesn't have to do that every time they come to the website. I'm guessing you use a cookie for that. But how would I do this? By using a "form" so I can (on page load) check to see what language and go to www.mysite.com/index.php?english.. I'm completely new to this.. So basically, I'm asking how would you do this? Can I keep the Javascript function, or will I have to recode that to PHP (the text changer)?
Any comments, answers, or suggestions are appreciated!
Thanks! -Ryan