Small PHP fix needed - Right NOW

Devam Ediyor İlan edilme: Feb 3, 2009 Teslim sırasında ödenir
Devam Ediyor Teslim sırasında ödenir

Looking to pay under $15 - bid fast and cheap please. I have a simple PHP issue where my web form is supposed to send the submission to a new email with each new submission and then loop back to the first email in the code. Everything works fine except once the counter gets to case 10 it stops working. If you can fix this right now let me know. Here is part of the code below. It uses a counter [login to view URL] file which is = 1. Thank you.

//...... If they specify "email" in their form, it will set the reply-to field.

$counter_file = "counter_check.txt";

$file = fopen($counter_file, "r");

$count = fread($file, 1);

fclose($file);

switch($count)

{

case '0':

$mailto = "EMAIL1";

$newCount = "1";

$file = fopen($counter_file, "w");

fwrite($file, $newCount);

fclose($file);

break;

case '1':

$mailto = "EMAIL2";

$newCount = "2";

$file = fopen($counter_file, "w");

fwrite($file, $newCount);

fclose($file);

break;

case '2':

$mailto = "EMAIL3";

$newCount = "3";

$file = fopen($counter_file, "w");

fwrite($file, $newCount);

fclose($file);

break;

case '3':

$mailto = "EMAIL4";

$newCount = "4";

$file = fopen($counter_file, "w");

fwrite($file, $newCount);

fclose($file);

break;

case '4':

$mailto = "EMAIL5";

$newCount = "5";

$file = fopen($counter_file, "w");

fwrite($file, $newCount);

fclose($file);

break;

case '5':

$mailto = "EMAIL6";

$newCount = "6";

$file = fopen($counter_file, "w");

fwrite($file, $newCount);

fclose($file);

break;

case '6':

$mailto = "EMAIL7";

$newCount = "7";

$file = fopen($counter_file, "w");

fwrite($file, $newCount);

fclose($file);

break;

case '7':

$mailto = "EMAIL8";

$newCount = "8";

$file = fopen($counter_file, "w");

fwrite($file, $newCount);

fclose($file);

break;

case '8':

$mailto = "EMAIL9";

$newCount = "9";

$file = fopen($counter_file, "w");

fwrite($file, $newCount);

fclose($file);

break;

case '9':

$mailto = "EMAIL10";

$newCount = "10";

$file = fopen($counter_file, "w");

fwrite($file, $newCount);

fclose($file);

break;

case '10':

$mailto = "EMAIL11";

$newCount = "11";

$file = fopen($counter_file, "w");

fwrite($file, $newCount);

fclose($file);

break;

case '11':

$mailto = "EMAIL12";

$newCount = "12";

$file = fopen($counter_file, "w");

fwrite($file, $newCount);

fclose($file);

break;

case '12':

$mailto = "EMAIL13";

$newCount = "0";

$file = fopen($counter_file, "w");

fwrite($file, $newCount);

fclose($file);

break;

}

if($email)

{

$sentMail = mail($mailto,$subject,$newMsg,"Reply-To: $email\r\nFrom: $email\r\n$headers");

//...... MAIL TO USER

if($emailusr)

{

mail($email,$subject,$newMsg,"Reply-To: $mailto\r\nFrom: $mailto\r\n$headers");

}

ASP PHP Ruby on Rails

Proje NO: #380024

Proje hakkında

27 teklif Uzak proje Aktif Feb 3, 2009

Seçilen:

littlehoi

Dear sir, Please let me help you. Thanks, Alex

%selectedBids___i_period_sub_7% gün içinde 30%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(7 Değerlendirme)
2.9

Bu iş için 27 freelancer ortalamada $37 teklif veriyor

lightcresent

Hi.. I can fix it for $9... Right nw... Thanks

$30 USD in 0 gün içinde
(609 Değerlendirme)
9.3
websree

Hi, Kindly review pmb for details. Thanks

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(211 Değerlendirme)
8.3
dboyzhang

Hi, I see the issue in the script. can fix it right now. $10 will be enough, PMB is not needed as this is a very simple project. If you select me, send me the scrit then I send the fixed script to you. Let's make it wo Daha Fazla

$30 USD in 0 gün içinde
(337 Değerlendirme)
7.3
eelance

i think i can fix it also .10$.

$30 USD in 0 gün içinde
(362 Değerlendirme)
6.8
ichurakov

Ready to work

$30 USD in 0 gün içinde
(216 Değerlendirme)
6.3
artcactus

Hi, can give you a solution right now. Check PM for details

$30 USD in 0 gün içinde
(33 Değerlendirme)
6.3
SourceBurner

Hi, please take a look at PMB. Regards

$30 USD in 0 gün içinde
(129 Değerlendirme)
5.8
exoexo

I saw the error. Easy to fix. PMB. also this code can be improved and reduced in size less than 10 lines, but to support easier way to work with unlimited emails you just enter and all auto work. Details at PMb, price Daha Fazla

$30 USD in 0 gün içinde
(66 Değerlendirme)
5.9
mirod

Hello, I could fix the script for $10 within an hour!

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(34 Değerlendirme)
5.7
goldenstar

check my pmb

$30 USD in 0 gün içinde
(49 Değerlendirme)
5.2
vladim1

Please read PMB

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(30 Değerlendirme)
5.3
CoderTech

I see your bug, check pm...

$30 USD in 0 gün içinde
(7 Değerlendirme)
4.7
skorpland

Ready to start and finish Thanks

$30 USD in 0 gün içinde
(14 Değerlendirme)
4.5
gsoftinfo

hi.. view PM

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(5 Değerlendirme)
4.8
visu14

Hi... send me the link to the form...

$30 USD in 0 gün içinde
(16 Değerlendirme)
4.0
Ellemer

Please check PM, thanks

$100 USD in 7 gün içinde
(7 Değerlendirme)
3.3
softwaresbuilder

plz see pmb

$30 USD in 0 gün içinde
(17 Değerlendirme)
4.1
javiertapia

Hi. I identified the problem and can solve quickly for $8. Thanks!

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(3 Değerlendirme)
3.1
antony123

I can do it now.

$30 USD in 0 gün içinde
(10 Değerlendirme)
3.2
needservice

please PM for sure price.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)
0.0