RE: [PHP-DB] Variables & Forms

From: Date: Wed, 17 Oct 2007 13:00:04 +0000
Subject: RE: [PHP-DB] Variables & Forms
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-44224@lists.php.net to get a copy of this message
Ron, The email subject line should not have a <br /> tag in it at all. It is not allowed under the specifications if I remember correctly. I would suggest that when you suck the message in, first thing to do is to remove the <br /> tag with str_replace... Would this get you on your way? Bastien> From: ron.piggott@actsministries.org> To: php-db@lists.php.net> Date: Tue, 16 Oct Bastien> 2007 09:47:13 -0500> Subject: [PHP-DB] Variables & Forms> > I am programming a form Bastien> this morning. I don't understand arrays really well. I think this is what I am needing to Bastien> use, but I am really not sure.> > I have a PHP script that checks a POP e-mail address and is Bastien> suppose to take the incoming message and save it to a mySQL table based on the subject line. Every Bastien> now and then the subject line is broken with something like a <br /> and so I have a handful Bastien> of messages that need to be indexed manually. IE my script can't see a "Subject: Bastien> Correspondence for message 123" --- it is being received as "Subject: Correspondence for Bastien> <br />message 123" I am trying to update the mySQL table with a form instead of Bastien> continuing to use phpmyadmin to do these updates. > > What I am wanting to do in my form is Bastien> call up all the incoming messages that have a message value of 0 and I can read through the incoming Bastien> message to see what their reference number is and type it in the field that I have called Bastien> "new_correspondence_received". An example of my HTML code is below.> > Where I am Bastien> getting stuck is if I have more than 1 message that wasn't indexed automatically I am not sure Bastien> how to retrieve the values of: correspondence_reference and new_correspondence_reference. (The only Bastien> reason I am displaying correspondence_received is to look for the reference number) Can what I am Bastien> trying to do be accomplished through an array to find out the values submitted? What changes need Bastien> to be made to my form so I can find out the values being submitted?> > Each message received Bastien> that isn't automatically index is dispayed through this form, one <TR> per message, Bastien> thanks for your help. Ron> > <tr><td width=200>> <font face="times new Bastien> roman">> <center>> <input id=all type="checkbox" Bastien> name="correspondence_reference" value="172" checked> 172> Bastien> </center>> </td><td width=200>> <font face="times new Bastien> roman">> <center>> <input type=text Bastien> name="new_correspondence_reference" size=6 maxlength=30 value = "0">> Bastien> </center>> </td><td width=400>> <textarea COLS=50 ROWS=10 Bastien> name="correspondence_received">Message here</textarea>> Bastien> </td></tr>> > _________________________________________________________________ Have fun while connecting on Messenger! Click here to learn more. http://entertainment.sympatico.msn.ca/WindowsLiveMessenger

« previous php.db (#44224) next »