Braveheartt Posted March 16, 2008 Share Posted March 16, 2008 Hey again! I'm seeking some help with PHP and HTML (I know this is a PHP website, but HTML is closely linked so I hope it's alright!) Basically what I want to do is input data, save the data, show the data and be able to edit it. So the first page needs to have a password field (HTML) which requires the password to match that of a defined one. (PHP file?) How would I do that? The next page will have a number of different input fields (HTML, already done!) once submitted, is stored somewhere (PHP file? Or how would I do this?) Next we have another page which displays all the inputted data in a number of tables etc (PHP > HTML?). There'd be an edit button on this page which requires another different password to be put it, and this allows the person to edit the data which is displaying. That is everything in a basic break down. Now I know I need to use HTML, but for the data saving how would I go about doing that? What about displaying the data, should I use PHP instead? Instead of going HTML>PHP>HTML. Bear in mind I am a PHP noob noob nooooob! Quote Link to comment https://forums.phpfreaks.com/topic/96448-getting-saving-displaying-and-editing-data/ Share on other sites More sharing options...
BlueSkyIS Posted March 16, 2008 Share Posted March 16, 2008 you need to start with a tutorial or 2 or 10. here's one. http://www.thesitewizard.com/archive/feedbackphp.shtml Quote Link to comment https://forums.phpfreaks.com/topic/96448-getting-saving-displaying-and-editing-data/#findComment-493642 Share on other sites More sharing options...
Braveheartt Posted March 17, 2008 Author Share Posted March 17, 2008 Well that just shows me how to make a from and email it. I already have that... Nothing related to what I asked? :-\ Quote Link to comment https://forums.phpfreaks.com/topic/96448-getting-saving-displaying-and-editing-data/#findComment-493681 Share on other sites More sharing options...
pocobueno1388 Posted March 17, 2008 Share Posted March 17, 2008 You need to just search Google for basic PHP/MySQL tutorials. What your asking is very broad and your not going to be able to do it without basic knowledge. It wouldn't hurt to read through all the PHP/MySQL tutorials on this site: www.tizag.com or www.w3schools.com After that, you should start figuring out how to do what your wanting. Quote Link to comment https://forums.phpfreaks.com/topic/96448-getting-saving-displaying-and-editing-data/#findComment-493685 Share on other sites More sharing options...
Braveheartt Posted March 17, 2008 Author Share Posted March 17, 2008 You need to just search Google for basic PHP/MySQL tutorials. What your asking is very broad and your not going to be able to do it without basic knowledge. It wouldn't hurt to read through all the PHP/MySQL tutorials on this site: www.tizag.com or www.w3schools.com After that, you should start figuring out how to do what your wanting. I have been! The thing is, most tutorials are going to teach me something which is completely irrelevant to what I want to do. If there is a tutorial about inputting data, saving it into a MySQL, and displaying it on a web site then bring it on! Quote Link to comment https://forums.phpfreaks.com/topic/96448-getting-saving-displaying-and-editing-data/#findComment-493691 Share on other sites More sharing options...
pocobueno1388 Posted March 17, 2008 Share Posted March 17, 2008 Well then, here are some specific tutorials for you. Working with forms - http://www.tizag.com/phpT/phpsessions.php Insert form data into database - http://www.tizag.com/mysqlTutorial/mysqlinsert.php Get information from database - http://www.tizag.com/mysqlTutorial/mysqlquery.php Quote Link to comment https://forums.phpfreaks.com/topic/96448-getting-saving-displaying-and-editing-data/#findComment-493692 Share on other sites More sharing options...
redarrow Posted March 17, 2008 Share Posted March 17, 2008 install mysql so easyer then files.................. Quote Link to comment https://forums.phpfreaks.com/topic/96448-getting-saving-displaying-and-editing-data/#findComment-493712 Share on other sites More sharing options...
Braveheartt Posted March 17, 2008 Author Share Posted March 17, 2008 Thanks! I've been doing tutorials on that tizag site. One question: my website does not (for some reason) allow me to use PHP code in the pages even though it is a PHP website. So I have to use HTML code, can I get the input with HTML, save it with PHP-MYSQL then display it again with HTML? (can HTML read from PHP or whatever?) How would I do that? Quote Link to comment https://forums.phpfreaks.com/topic/96448-getting-saving-displaying-and-editing-data/#findComment-493949 Share on other sites More sharing options...
accident Posted March 17, 2008 Share Posted March 17, 2008 no. You need PHP or another language installed. The majority of web hosts have php installed... are you sure yours doesn't? Quote Link to comment https://forums.phpfreaks.com/topic/96448-getting-saving-displaying-and-editing-data/#findComment-493968 Share on other sites More sharing options...
Braveheartt Posted March 17, 2008 Author Share Posted March 17, 2008 Both PHP and MYSQL are installed. Problem is I'm using a CMS for my website. I'm just going to build the displaying page in PHP so it'll just have to be separate from the website. Quote Link to comment https://forums.phpfreaks.com/topic/96448-getting-saving-displaying-and-editing-data/#findComment-493977 Share on other sites More sharing options...
pocobueno1388 Posted March 17, 2008 Share Posted March 17, 2008 You can use PHP and HTML on the same page. Just make sure the extension is .php (unless you have your site configured to read HTML files as PHP). Quote Link to comment https://forums.phpfreaks.com/topic/96448-getting-saving-displaying-and-editing-data/#findComment-494065 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.