It's hard to judge on a better way based only on this information - it depends on! Basically your design seams to be sound.
However a good design is left to be defined by the developer him self, and it is controlled by the requirements specification for the intended system. To answer that question one has first to know the answer to the question about the goal of the system. For example lets assume you main goal is to have it up and running as fast as possible - no matter what. Then any Q&D programming could be said to be a better ay to do things. By this I am not saying that you in fact have done Q&D programming, but rather I saying: "I have no f__king idea". :) But to be a little bit more constructive: why don't you also let the script that validates the data, also take responsibility to submit the data to the database? This way you wont need to utilize any extra IPC, but could stay within the scope of the very same script, as an extra bonus this might reduce coupling and increasing cohesion for you. But then again.. this does of course depends on your goals and what you done so far. Regards, Anders >-----Original Message----- >From: Ross Fleming [mailto:[EMAIL PROTECTED]] >Sent: Monday, October 15, 2001 9:02 PM >To: Svensson, B.A.T. ; [EMAIL PROTECTED] >Cc: [EMAIL PROTECTED] >Subject: RE: [PHP-WIN] Inserting symbols into a mysql database from PHP > > >Right, after a bit of experimentation I believe the problem is that I'm >putting it through a form more than once. Basically I have an html form >which which posts to a php file for verification which will then post the >same data (through invisible fields) to another php file that inserts the >data into database. Any better ways to do this then? > >Cheers > >Ross > >-----Original Message----- >From: Svensson, B.A.T. [mailto:[EMAIL PROTECTED]] >Sent: 15 October 2001 18:25 >To: [EMAIL PROTECTED] >Cc: [EMAIL PROTECTED] >Subject: RE: [PHP-WIN] Inserting symbols into a mysql database from PHP > > >Why doesn't the URL encoding work? > >>-----Original Message----- >>From: Ross Fleming [mailto:[EMAIL PROTECTED]] >>Sent: Monday, October 15, 2001 7:14 PM >>To: [EMAIL PROTECTED] >>Subject: [PHP-WIN] Inserting symbols into a mysql database from PHP >> >> >>Hi all, >> >>My problem is that that I have a form that takes user data and >>inserts it >>into a database. How can I allow quote marks to be inserted into the >>database? ie if someone puts a " mark in the form field then >php/mysql >>recognises that as the end of the data I'm trying to insert. I tried >>urlencode-ing the data before inserting it and urldecode-ing >>it when reading >>it, but it didn't help. >> >>Any suggestions? Surely this must be possible? >> >>Thanks in advance >> >>Ross >> >> >>-- >>PHP Windows Mailing List (http://www.php.net/) >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >>To contact the list administrators, e-mail: >>[EMAIL PROTECTED] >> > >-- >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: >[EMAIL PROTECTED] > > > > >-- >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: >[EMAIL PROTECTED] > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]