Jump to content

Using the 'strtoupper'!!!!!!


n1ckyb0y

Recommended Posts

Hi

Got this code to write form fields and values into an email, but I need to capitalize the values! Can anyone help.

Here are the initial variables:

[color=red]$incoming_fields = array_keys($HTTP_POST_VARS);
$incoming_values = array_values($HTTP_POST_VARS);[/color]

Here is the load contents bit:


[color=red]for ($i = 0; $i < count($incoming_fields); $i++) {
if($incoming_fields[$i] != "rec_mailto") {
if($incoming_fields[$i] != "rec_subject") {
if($incoming_fields[$i] != "rec_thanks") {
if($incoming_fields[$i] != "opt_mailto_cc") {
if($incoming_fields[$i] != "opt_mailto_bcc") {
$message .= "$incoming_fields[$i]:$incoming_values\n";
}}}}}}[/color]


Thanks from a newby.
Link to comment
https://forums.phpfreaks.com/topic/32680-using-the-strtoupper/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.