Find Jobs
Hire Freelancers

PHP Form Processing Script Help - Passing, Validating & Posting Radio Button Value

$30-250 USD

완료함
게시됨 거의 16년 전

$30-250 USD

제출할때 지불됩니다
Project Overview: This is a small project which requires an experienced PHP developer to help me modify the code I have been working on to pass whatever radio button that is selected into a separate form processing script then include the value in an email. Scope of Work: 1. Review the simple form and values 2. Review my current form processing script (below) 3. Incorporate php code to handle passing the radio button value thru my form processing script and ultimately into an email 4. Important: * I also want the code to have the ability to pass/email a unique block of static text applicable to each respective radio button. * This block of text will contain information like a unique street address where an event will be held, along with other unique information. * Please keep in mind that I need to pass this unique block of static text for each radio button. 5. The php code must also force a selection. If a radio button is not chosen, a notification similiar to my "Foobar1" and "Foobar2" will be printed. ============================================================== THE FOLLOWING IS NOTHING MORE THAN A SAMPLE FORM: <br /> <br /> <form action="form-processor.php" method="post"> Email Address: <input type="text" name="Primary Registrant Email" id="Primary Registrant Email" value="" maxlength="40" /> <br /> <br /> Attendance Option 01: <input type="radio" name="option" id="A01" value="A01"> <br /> Attendance Option 02: <input type="radio" name="option" id="A02" value="A02"> <br /> Attendance Option 03: <input type="radio" name="option" id="A03" value="A03"> <br /> Attendance Option 04: <input type="radio" name="option" id="A04" value="A04" /> <br /> <br /> <input name="Submit" type="button" value="Submit"> <br /> <br /> <? /* THE FOLLOWING REPRESENTS MY THE CODE I HAVE BEEN WORKING ON */ ?> <? /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ @$Option_Selected = stripslashes($_POST['Option_Selected']); // Handled radio button value selection @$Primary_Registrant_Email = stripslashes($_POST['Primary_Registrant_Email']); /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ // This is where radio button code should go. // $check1 = ($_POST['radio'] == 1) ? 'Attendance Option 01' : ''; // $check2 = ($_POST['radio'] == 0) ? 'Attendance Option 02' : ''; // $check3 = ($_POST['radio'] == 0) ? 'Attendance Option 03' : ''; if (strlen($Primary_Registrant_Email) == 0 ){die("Foobar1");} if(!preg_match("/^[A-Z0-9._%-]+@[A-Z0-9.-]+.[A-Z]{2,4}$/i",$_POST["Primary_Registrant_Email"])) {die("Foobar2");} /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ $ip=$_SERVER['REMOTE_ADDR']; $Date = strftime("%m/%d/%Y", time()); $Time = strftime("%I:%M:%S %p", mktime()); $mailto = ''; $subject = ""; $header = 'MIME-Version: 1.0' . "rn"; $header .= "Reply-To: n"; $header .= "From: rn"; $header .= "Cc: <>,<>,<> rn"; $header .= "Bcc: <> rn"; $header .= 'Content-Transfer-Encoding: 7bit' . "rn"; $header .= 'Content-type: text/html; charset=iso-8859-1' . "rn"; $emailcontent =" THIS IS WHERE THE RADIO BUTTON VALUE SHOULD POST SO THAT IT IS INCLUDED IN THE EMAIL. <br><br> $Option_Selected <br><br> Primary Attendee Email: $Primary_Registrant_Email <br><br> Time/Date Stamp: ".$Time." - ".$Date." <br><br> Visitor IP: ".$ip."<br><br> Lookup IP: h t t p : //[login to view URL] . net/whois/?queryinput=".$ip."<br><br> Message ID: ".md5(rand."".time())." <br><br> "; mail($mailto,$subject,$emailcontent,$header); header("Location: "); ?>
프로젝트 ID: 269250

프로젝트 정보

16 제안서
원격근무 프로젝트
활동 중 16년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
프로젝트를 수여된 사용자:
사용자 아바타
Check PM for more info..
$30 USD 0일에
4.9 (96 건의 리뷰)
6.8
6.8
16 이 프로젝트에 프리랜서들의 평균 입찰은 $36 USD입니다.
사용자 아바타
We have handled much more complex forms than this. Please check PMB for the one of them.
$30 USD 1일에
4.7 (543 건의 리뷰)
8.6
8.6
사용자 아바타
Please check PM
$30 USD 0일에
5.0 (24 건의 리뷰)
5.7
5.7
사용자 아바타
i can help you
$30 USD 1일에
5.0 (107 건의 리뷰)
5.6
5.6
사용자 아바타
I can do this
$50 USD 1일에
4.8 (26 건의 리뷰)
4.7
4.7
사용자 아바타
hi, i am a professional php webapp/website developer think i can help you with this. Looking forward to work with you.
$30 USD 1일에
5.0 (8 건의 리뷰)
4.5
4.5
사용자 아바타
Hi sir, I can help you, plz see PM;
$40 USD 0일에
5.0 (14 건의 리뷰)
4.3
4.3
사용자 아바타
Extremely simple fix - I can have it sorted within 30 minutes. Please PM me for more information.
$30 USD 0일에
4.8 (8 건의 리뷰)
3.9
3.9
사용자 아바타
i am interested i will provide you full satisfection escrow required please check pmb thanks dhirendra
$30 USD 1일에
5.0 (2 건의 리뷰)
3.1
3.1
사용자 아바타
I am proficient in PHP. Please see PMB for details.
$30 USD 0일에
5.0 (4 건의 리뷰)
2.3
2.3
사용자 아바타
i can make your project.. i have experience in php.. html.. css. mysql.. oracle.. design.. javascript... i can start now.. give me oportunity.. thanks!!
$30 USD 1일에
5.0 (1 건의 리뷰)
2.0
2.0
사용자 아바타
We can doyour work sir
$30 USD 1일에
4.5 (1 건의 리뷰)
1.4
1.4
사용자 아바타
Hello Sir, This is a very simple task. I can do it withing 1 hr. Check your PMB for further detail.
$30 USD 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
i can provide you this form in minutes. please check PM, thanks.
$30 USD 0일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
Same-day service, satisfaction guaranteed. See PMB for details. Thank you!
$30 USD 0일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
Hey, i can definitely complete this project for you. I am fully certified in PHP.
$100 USD 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
I am so interested. It is easy project work.
$30 USD 1일에
0.0 (0 건의 리뷰)
0.0
0.0

고객에 대한 정보

국기 (UNITED STATES)
Huntley, United States
5.0
43
결제 수단 확인
4월 2, 2004부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.