Find Jobs
Hire Freelancers

Deal with dynamic php variables

$10-30 USD

In Progress
Posted almost 5 years ago

$10-30 USD

Paid on delivery
Hello, I have a page where it will get a POST submission with c names 1) The POST values can be infinite 2) I need the make sure what comes in the array should be in order e.g. $_POST['c1']; $_POST['c2']; $_POST['c3']; $_POST['c4']; $_POST['c5']; $_POST['c6']; . . . $_POST['cn']; Teh code is $cd_arr = []; if(isset($_POST)){ foreach($_POST as $k => $v){ if($k[0] == 'c' && is_numeric($k[1]) == TRUE){ $cd_arr[] = mysqli_real_escape_string($connect,$v); }}} The code is working but the order of the array is going to be wrong if c2 posted before c1 and so on I want the array $cd_arr to contain the values in order as per c number even if the post is not in order.
Project ID: 19601326

About the project

33 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
33 freelancers are bidding on average $28 USD for this job
User Avatar
Hello, This is Fateema have 9+ years of software development experience with me in web development including PHP/Mysql/Javascipt/jQuery/JSON/Ajax/ Will do your Count change within 15 mins. Lets have a chat for further process. Regards Fateema
$25 USD in 1 day
4.8 (162 reviews)
7.1
7.1
User Avatar
Yes, I can do this Loop using PHP. So do you need the working code from me or I need to add this code to your website?
$30 USD in 1 day
4.9 (136 reviews)
6.7
6.7
User Avatar
sir message me im php expert ... sir message me im php expert ... sir message me im php expert ... sir message me im php expert ...
$25 USD in 0 day
5.0 (193 reviews)
6.3
6.3
User Avatar
Hello, my name is Brendan. I have read your project specifications and this job fits within my area of expertise. I would love to come on board and work on this with you. I am available to begin immediately. Relevant Skills and Experience - 9 years experience in Web Development & Web Technologies - Expert in the PHP Language - 5 star rated freelancer with over 60 completed projects - Fast communication and deliver on time
$25 USD in 1 day
4.9 (66 reviews)
6.2
6.2
User Avatar
Hello! No problems, I can fix that for you. Ready when you are. Kind Regards, Dobri
$15 USD in 0 day
5.0 (165 reviews)
6.1
6.1
User Avatar
ready to start work on it. I have 100+ reviews with all 5 stars and 12+ years experience. Looking forward from you soon Thank you
$25 USD in 1 day
4.9 (96 reviews)
5.7
5.7
User Avatar
Hello, Greetings for the day. I am an experienced php developer and can provide you with quality work as per your requirements. Look forward to discuss further details. Thanks.
$25 USD in 1 day
5.0 (21 reviews)
5.0
5.0
User Avatar
Dear Client, Thank you for looking at my candidature. As per your given brief you are looking for a skilled developer, who can resolved "POST" variable related issues, i am glad to say that i have prior experience in the field of development. I can fulfill your skills requirement and I would like to discuss further regarding the feature development part. I am good at designing and have a good understanding of HTML5/CSS3 and Bootstrap designing. I will give my 100% efforts to develop a good relationship and get future projects. I am a Codeigniter, Mysql, WordPress and Php expert having extensive experience 5+ years. I have a strong command over developing and customizing websites as per client requirements I have worked on a various designing project including responsive web designing, flat designing, and parallax web designing. I have good command over CSS2.0 & 3.0, HTML4.0 & 5.0, DHTML/XHTML, AJAX, JavaScript and jQuery. 6 Reasons, why you should hire me for your custom website and Application Development. 1. Available 24/7 upon your request. 2. Provide SEO friendly environment. 3. Free technical support for 6- months. 4. Always think beyond boundaries and provide a user-friendly solution. 5. Provide excellence with commitment. 6. Most important, Delivery on-time with 100% satisfaction. Looking forward to hearing from you soon. Thanks and regards!!
$20 USD in 2 days
4.8 (35 reviews)
5.4
5.4
User Avatar
The skills and resources needed for this project are in my genes. We can assure you for a complete professional work in a given timeline. Please share the complete detail of your requirement. We have 8+ year experience in PHP, Android and dedicated security team to make sure that data is not traceable by anyone we can complete the job real quick we have dedicated 20+ web developers
$20 USD in 1 day
4.4 (44 reviews)
5.1
5.1
User Avatar
Hello sir, Hope you are doing well. i have 6+ years of experience in WordPress php codeigniter html css mysql javascript bootstrap graphic design website design etc. these job suitable for me Kind Regards, purvi
$25 USD in 1 day
4.7 (26 reviews)
4.8
4.8
User Avatar
Hello, After reviewing your post, I am very interested in that due to my experience. and I assure you won't be disappointed. Looking forward to hear from you and hoping for a long term work relationship. I will satisfy you. Best regards,
$10 USD in 7 days
4.8 (26 reviews)
4.8
4.8
User Avatar
Hey! After reading over your application this looks like a perfect fit for my skills sets . My skill set includes:PHP (custom + core),CMS(WordPress,Joomla, Magento),Framework (Laravel,codeigniter, Bootstrap ,HTML5, CSS3, MySql I am immediately available for this job. Thank you and I look forward to the opportunity to work with you. Regards,
$23 USD in 1 day
5.0 (9 reviews)
4.2
4.2
User Avatar
Hello. My name is Muhammad Hassan. I have high level expertise in PHP Development. I can do the work right now. Regards
$10 USD in 0 day
5.0 (21 reviews)
4.1
4.1
User Avatar
This type of problem can be easily solved with javascript ,i can modify like you can made any number of time and can change as well at user interface ,don't need to set it staticly.
$12 USD in 1 day
4.9 (14 reviews)
3.8
3.8
User Avatar
Hello, Thanks for reading my proposal. We are the team of 20 developers based in Dallas, Texas . We can take up this project and I think we are the perfect fit for this job. We have 6+ yrs combined experience with expertise in mobile and web technologies. We have developed and supported a series of small business and enterprise solutions including eCommerce, eLearning, Health & fitness etc. I look forward to hearing from you about this job so that we could share our approach towards the job. (Please note that the cost given in this proposal is not final, this can be negotiated during the discussion) Hope we will work together and build a long term relationship Regards Hari K
$200 USD in 8 days
5.0 (3 reviews)
3.6
3.6
User Avatar
OK, look, you can make sort($_POST) before foreach, like that: $_POST = [ 'c3' => 'c3v', 'c1' => 'c1v', 'c2' => 'c2v' ]; $cars = []; sort($_POST); foreach ($_POST as $key => $car) { $cars[] = $_POST[$key]; } The array $cars would be: array(3) { [0]=> string(3) "c1v" [1]=> string(3) "c2v" [2]=> string(3) "c3v" }
$10 USD in 0 day
5.0 (3 reviews)
3.4
3.4
User Avatar
Hi i can help you in it am am expert in php i have 5 year experience in php and advance php so i am able to do your work in some hours
$20 USD in 1 day
4.7 (16 reviews)
3.1
3.1
User Avatar
I will follow your request as quickly as possible. If necessary, please chat with me to discuss further. Thanks
$15 USD in 1 day
5.0 (3 reviews)
2.6
2.6
User Avatar
UPDATE: add ksort($_POST) outside foreach loop and your problem will be solved. I have the most efficient code for this. It's an easy job. Please initiate a conversation to discuss about this page. I can start working right now. I am in need of this work, thank you.
$30 USD in 1 day
5.0 (2 reviews)
1.0
1.0
User Avatar
Hi I am a php / wordpress developer with 5 years of experience let me give a chance to express myself and knowledge I do the tasks very smoothly and efficiently. only your support needed when required. I will give you best technical support. thanks
$25 USD in 1 day
3.0 (1 review)
0.8
0.8

About the client

Flag of OMAN
muscat, Oman
5.0
33
Payment method verified
Member since Oct 14, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.