Small PHP fix needed - Right NOW

Em Andamento Postado Feb 3, 2009 Pago na entrega
Em Andamento Pago na entrega

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 [url removed, login to view] 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

ID do Projeto: #380024

Sobre o projeto

28 propostas Projeto remoto Ativo em Feb 3, 2009

Concedido a:

littlehoi

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

$30 USD em 0 dias
(7 Comentários)
2.9

28 freelancers estão ofertando em média $37 nesse trabalho

lightcresent

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

$30 USD in 0 dias
(571 Comentários)
9.1
websree

Hi, Kindly review pmb for details. Thanks

$30 USD em 1 dia
(200 Comentários)
7.9
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 Mais

$30 USD in 0 dias
(282 Comentários)
7.1
eelance

i think i can fix it also .10$.

$30 USD in 0 dias
(354 Comentários)
6.8
ichurakov

Ready to work

$30 USD in 0 dias
(216 Comentários)
6.3
artcactus

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

$30 USD in 0 dias
(33 Comentários)
6.3
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 Mais

$30 USD in 0 dias
(66 Comentários)
5.9
mirod

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

$30 USD em 1 dia
(34 Comentários)
5.7
SourceBurner

Hi, please take a look at PMB. Regards

$30 USD in 0 dias
(87 Comentários)
5.6
vladim1

Please read PMB

$30 USD em 1 dia
(30 Comentários)
5.3
goldenstar

check my pmb

$30 USD in 0 dias
(48 Comentários)
5.2
CoderTech

I see your bug, check pm...

$30 USD in 0 dias
(7 Comentários)
4.7
gsoftinfo

hi.. view PM

$30 USD em 1 dia
(5 Comentários)
4.8
skorpland

Ready to start and finish Thanks

$30 USD in 0 dias
(14 Comentários)
4.4
visu14

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

$30 USD in 0 dias
(16 Comentários)
4.0
softwaresbuilder

plz see pmb

$30 USD in 0 dias
(17 Comentários)
4.1
Ellemer

Please check PM, thanks

$100 USD in 7 dias
(7 Comentários)
3.3
javiertapia

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

$30 USD em 1 dia
(3 Comentários)
3.1
antony123

I can do it now.

$30 USD in 0 dias
(10 Comentários)
3.1
needservice

please PM for sure price.

$30 USD em 1 dia
(0 Comentários)
0.0