Sedang Disiapkan

Small PHP fix needed - Right NOW

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");

}

Kemahiran: ASP, PHP, Ruby on Rails

Lihat lebih lanjut: newcount, subject php, loop back, fast switch, small php, php w, mail php, mail fix, fix w, fix form, fix mail, field php, pay fix, form mail php, counter php, fwrite, php email check, php simple mail form, fix part, submission php, form pay php, small works, loop send, php simple works, fix small php file

Tentang Majikan:
( 6 ulasan ) Victorville, United States

ID Projek: #380024

Dianugerahkan kepada:

littlehoi

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

$30 USD dalam 0 hari
(7 Ulasan)
2.9

28 pekerja bebas membida secara purata $37 untuk pekerjaan ini

lightcresent

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

$30 USD dalam 0 hari
(571 Ulasan)
9.1
websree

Hi, Kindly review pmb for details. Thanks

$30 USD dalam sehari
(200 Ulasan)
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 Lagi

$30 USD dalam 0 hari
(282 Ulasan)
7.1
eelance

i think i can fix it also .10$.

$30 USD dalam 0 hari
(354 Ulasan)
6.8
ichurakov

Ready to work

$30 USD dalam 0 hari
(216 Ulasan)
6.3
artcactus

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

$30 USD dalam 0 hari
(33 Ulasan)
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 Lagi

$30 USD dalam 0 hari
(66 Ulasan)
5.9
mirod

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

$30 USD dalam sehari
(34 Ulasan)
5.7
SourceBurner

Hi, please take a look at PMB. Regards

$30 USD dalam 0 hari
(87 Ulasan)
5.6
vladim1

Please read PMB

$30 USD dalam sehari
(30 Ulasan)
5.3
goldenstar

check my pmb

$30 USD dalam 0 hari
(48 Ulasan)
5.2
CoderTech

I see your bug, check pm...

$30 USD dalam 0 hari
(7 Ulasan)
4.7
gsoftinfo

hi.. view PM

$30 USD dalam sehari
(5 Ulasan)
4.8
skorpland

Ready to start and finish Thanks

$30 USD dalam 0 hari
(14 Ulasan)
4.4
visu14

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

$30 USD dalam 0 hari
(16 Ulasan)
4.0
softwaresbuilder

plz see pmb

$30 USD dalam 0 hari
(17 Ulasan)
4.1
Ellemer

Please check PM, thanks

$100 USD dalam 7 hari
(7 Ulasan)
3.3
tanmaysoftwares

Dear sir / Mam, We are a Technology Driven Team of highly experienced Individuals from ALL DOMAINS and [url removed, login to view] assure you for BEST QUALITY and ON-TIME [url removed, login to view] can see our Testimonials and Be AssURE Lagi

$30 USD dalam 0 hari
(2 Ulasan)
3.2
javiertapia

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

$30 USD dalam sehari
(3 Ulasan)
3.1
antony123

I can do it now.

$30 USD dalam 0 hari
(10 Ulasan)
3.1