Re: Stopping Submissions With Empty Fields
Posted: Wed Oct 05, 2011 4:41 pm
Hello cAdams,
That you 'tricked' me was not meant seriously. Because you made the file available, you 'tricked' me because I was curious.
In this forum thread you have not mentioned before that you are a PHP virgin, but now I know, so I will take it into account.
Because I have no time to modify the code myself I thought I would help you by pointing you in the right direction to make the modifications yourself. I did not know that you were a complete PHP newbie and would not know what to do at all. My apologies that you misunderstood my previous post.
But this is a good way to learn PHP, I learned PHP by modifying GBook to my needs many years ago. Before that I had only used HTML and javascript myself. And the extra field was just a small part of my modifications at that time, so the 2 days is only a guess. I spent 3 weeks of my summer vacation and some more time modifying the guestbook to my needs.
And to clarify for you, the database is not a real database like a MySQL database. It is a txt-file in which all the information is stored, which is also often called a flat file database. In the standard gbook it is named entries.txt. That is where all the entries of the guestbook are stored. You can view it yourself by opening it in a program like notepad or a similar program.
Greetings,
Henrie
That you 'tricked' me was not meant seriously. Because you made the file available, you 'tricked' me because I was curious.
In this forum thread you have not mentioned before that you are a PHP virgin, but now I know, so I will take it into account.
What I suggested were not modifications. These are parts that are literally present in the gbook.php file. The parts and functions I mentioned need to be modified for the guestbook to be able to store the ititle entry in the database.Finally your suggested modifications haven't worked but thank you for trying all the same and my apologies for wanting to know exactly which image someone is referring to when leaving feedback.
Because I have no time to modify the code myself I thought I would help you by pointing you in the right direction to make the modifications yourself. I did not know that you were a complete PHP newbie and would not know what to do at all. My apologies that you misunderstood my previous post.
But this is a good way to learn PHP, I learned PHP by modifying GBook to my needs many years ago. Before that I had only used HTML and javascript myself. And the extra field was just a small part of my modifications at that time, so the 2 days is only a guess. I spent 3 weeks of my summer vacation and some more time modifying the guestbook to my needs.
And to clarify for you, the database is not a real database like a MySQL database. It is a txt-file in which all the information is stored, which is also often called a flat file database. In the standard gbook it is named entries.txt. That is where all the entries of the guestbook are stored. You can view it yourself by opening it in a program like notepad or a similar program.
Greetings,
Henrie