![]() |
self submited form problem, sorting, cleaning and array...
Good day to you all,
Here I am again with another question regarding a listing and creating file. This time I would like to 4 things; - Clean my code, I clean the list and display only the txt file, but I do it 2 time same for where I display it, I'm sure there is a better way..? - Sort last added message on top. - When I add text, the page does not refresh and show what I just enter, I have to add another text to see it, on and on... - Could I get the result of the listing into an array ? Here is my code: PHP Code:
Thanks for your time ! |
Hello,
Quote:
Quote:
Quote:
Quote:
If I were you, I would consider using some CSS to clean up the code further. I am using inline CSS, but you should move it all to an external CSS file. Let me know if you are having any trouble with this code! PHP Code:
Yours, Runar |
I tried out your code, wow it look very nice, thanks, but it's not what I'm looking for. You fixed my code, ho yah, it is now fast and do not repeate within it self. Now, when the page reload after submit, it load another page, it should just refresh cotent and add content just added. The key here is a user comment code.
|
Well, that is not possible with PHP. You will have to use AJAX or something if you want the page to refresh the content without reloading itself.
|
| All times are GMT. The time now is 04:13 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0