Find Jobs
Hire Freelancers

simple javascript switch case code

$10-30 USD

완료함
게시됨 8년 이상 전

$10-30 USD

제출할때 지불됩니다
Here is what I'm trying to do; is it doable. I'm hoping you can simply send me the following <div modified so it works, and I can simply insert into my Wordpress page. I am working with Wordpress Enfold theme. From Gravity Forms I can pass this query string through a url: [login to view URL] On the "landing" page I will have this button: <div class='avia-button-wrap avia-button-center avia-builder-el-6 avia-builder- el-no-sibling '><a href='[login to view URL]' class='avia-button avia- icon_select-no avia-color-custom avia-size-small avia-position-center ' style='background-color:#173db7; border-color:#173db7; color:#f9f9f9; ' ><span class='avia_iconbox_title' >Home</span></a></div></div> If the customer pushes the button, the will go to the url listed in the case (statement?) Can we place within the above <div> this code (written correctly of course) as Javascript: javascript/text $email = $_GET['email'];I don't know if I'm doing anything with the email $total = $_GET['total']; $total = ltrim($total,"\x24"); Removes dollar sign. function switch ($total){ case "360.00": header("Location: [login to view URL]"); exit; break; case "370.00": header("Location: [login to view URL]"); exit; break; case "380.00": header("Location: [login to view URL]"); exit; break; case "390.00": header("Location: [login to view URL]"); exit; break; case "400.00": header("Location: [login to view URL]"); exit; break; default: echo "<meta http-equiv=\"Refresh\" content=\"0; url=[login to view URL]" . $total . "&email=" . $email . "\">"; break; } ?>
프로젝트 ID: 9157944

프로젝트 정보

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

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
프로젝트를 수여된 사용자:
사용자 아바타
Hey, so from my understanding of the code you had in the description. when the user presses the button, it linkins him to one of those links according to the sum in the $total. it is a little more complex than that.. where do you get the $total amount ? is it from a user input or from the server ? It is doable, although my aproach would be to put the link in there before the user presses the button (if the sum is gotten from the server) if it's from the user input it has to be on the press button function. Looking forward to hearing from you on chat!
$30 USD 1일에
0.0 (0 건의 리뷰)
0.0
0.0
4 이 프로젝트에 프리랜서들의 평균 입찰은 $23 USD입니다.
사용자 아바타
Proposal: This will not be displayed to other freelancers (only to the employer). Proposal: This will not be displayed to other freelancers (only to the employer). Proposal: This will not be displayed to other freelancers (only to the employer). Proposal: This will not be displayed to other freelancers (only to the employer). Proposal: This will not be displayed to other freelancers (only to the employer). Proposal: This will not be displayed to other freelancers (only to the employer). Proposal: This will not be displayed to other freelancers (only to the employer). Proposal: This will not be displayed to other freelancers (only to the employer). Proposal: This will not be displayed to other freelancers (only to the employer).
$25 USD 0일에
5.0 (5 건의 리뷰)
2.1
2.1
사용자 아바타
Hey, my name is Arnas and I'm a web developer from Ireland. I have fluent English and previous experience in PHP, MYSQL, HTML, JS and CSS. I don't have experience with Wordpress, however I can easily make this code for you. When you are passing variables to a URL this is using PHP and not JS, so you need PHP code to take it in and then you can proceed to work with it. Feel free to send me a message as I'm available to begin ASAP and do not undertake work I can't complete!
$25 USD 1일에
5.0 (2 건의 리뷰)
1.5
1.5
사용자 아바타
Hello , I can run your project. I have a lot of experience and will do a good job. Thank you for your attention and hope to be chosen by you .
$10 USD 10일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
I will do this quickly and efficiently. This is a simple thing to do, and can be done easily without too much trouble.
$25 USD 1일에
0.0 (0 건의 리뷰)
0.0
0.0

고객에 대한 정보

국기 (UNITED STATES)
Spicewood, United States
5.0
2
결제 수단 확인
9월 26, 2014부터 회원입니다

고객 확인

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