I am programming a form this morning. I don't understand arrays really well. I think this is what I am needing to use, but I am really not sure.
I have a PHP script that checks a POP e-mail address and is suppose to take the incoming message and save it to a mySQL table based on the subject line. Every now and then the subject line is broken with something like a and so I have a handful of messages that need to be indexed manually. IE my script can't see a "Subject: Correspondence for message 123" --- it is being received as "Subject: Correspondence for message 123" I am trying to update the mySQL table with a form instead of continuing to use phpmyadmin to do these updates.
What I am wanting to do in my form is call up all the incoming messages that have a message value of 0 and I can read through the incoming message to see what their reference number is and type it in the field that I have called "new_correspondence_received". An example of my HTML code is below.
Where I am getting stuck is if I have more than 1 message that wasn't indexed automatically I am not sure how to retrieve the values of: correspondence_reference and new_correspondence_reference. (The only reason I am displaying correspondence_received is to look for the reference number) Can what I am trying to do be accomplished through an array to find out the values submitted? What changes need to be made to my form so I can find out the values being submitted?
Each message received that isn't automatically index is dispayed through this form, one
Ron,
=20
The email subject line should not have a 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
> tag with str_replace...
=20
Would this get you on your way?
=20
Bastien> From: ron.piggott@actsministries.org> To: php-db@lists.php.net> Da=
te: Tue, 16 Oct 2007 09:47:13 -0500> Subject: [PHP-DB] Variables & Forms> >=
I am programming a form this morning. I don't understand arrays really we=
ll. I think this is what I am needing to use, but I am really not sure.> >=
I have a PHP script that checks a POP e-mail address and is suppose to tak=
e the incoming message and save it to a mySQL table based on the subject li=
ne. Every now and then the subject line is broken with something like a
r /> and so I have a handful of messages that need to be indexed manually. =
IE my script can't see a "Subject: Correspondence for message 123" --- it =
is being received as "Subject: Correspondence for message 123" I am =
trying to update the mySQL table with a form instead of continuing to use p=
hpmyadmin to do these updates. > > What I am wanting to do in my form is ca=
ll up all the incoming messages that have a message value of 0 and I can re=
ad through the incoming message to see what their reference number is and t=
ype it in the field that I have called "new_correspondence_received". An e=
xample of my HTML code is below.> > Where I am getting stuck is if I have m=
ore than 1 message that wasn't indexed automatically I am not sure how to r=
etrieve the values of: correspondence_reference and new_correspondence_refe=
rence. (The only reason I am displaying correspondence_received is to look=
for the reference number) Can what I am trying to do be accomplished thro=
ugh an array to find out the values submitted? What changes need to be mad=
e to my form so I can find out the values being submitted?> > Each message =
received that isn't automatically index is dispayed through this form, one =
>
text name=3D"new_correspondence_reference" size=3D6 maxlength=3D30 value =
=3D "0">>
>
>
ame=3D"correspondence_received">Message here>
> >=20
____________________________________________________________ _____
Have fun while connecting on Messenger! Click here to learn more.
http://entertainment.sympatico.msn.ca/WindowsLiveMessenger=
--_5976aaa9-a322-437f-b87d-4cb56ff91ce2_--
Re: Variables & Forms
am 17.10.2007 19:42:37 von Niel Archer
Hi Ron
" " is perfectly legitimate in an e-mail header field like "Subject:".
All headers may contain any combination of ASCII characters except CR
and LF which are used to terminate the field (See RFC8222 section 2.2).
There is also defined a means to "fold" lines which involves using the
CR+LF+white-space combination to indicate multiple line entries. Is it
possible your e-mail header fields are doing this and your access to the
headers does not take this possibility into account? Without your POP
handling code it's impossible to say whether this is your problem or not.
--
Niel Archer
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php