HI,
I want to fix this and get the correct ID and Code values from spesific button within while loop
As of now, its always posting the latest value even if I click on spesific button.
test files attached.
Hello, How are you?
Thank you for your job posting.
I am a fullstack web developer and a PHP expert.
I read the description carefully and I am sure I can do the job very well.
As a seasoned PHP developer I have the following skills:
- Profound knowledge of Ajax, jQuery, and MySQL.
- Good use of modern frontend frameworks such as Vue, React, Angular.
-Good understanding of JavaScript, CSS, and HTML.
- Rich experience in APIs, Unix/Linux, and MVC Framework Architecture.
- Good understanding open-source web frameworks such as Laravel.
Let's meet in the chat room and have a detailed discussion.
I'd love to work on your project.
Best regards.
First of all.. open web console and you will see warning messages as so many elements having same ID, which is completely wrong... so as usual it is taking the value of the last element.
Only solution is to use data attribute. Please check the script
<input id="id_<?php echo $id ?>" data-id="<?php echo $id ?>" value="<? echo $id; ?>">
so the button should be like -
<button type="button" data-id="<?php echo $id ?>" onClick="out(); "><b>Send</b></button>
Now we need to fetch that data attribute value and send it to the PHP server side file.
This will fix the issue.
I have more than 5 years of experience working with PHP, MySQL, API, HTML, Javascript, Node Js, Vue Js, Css, Git, C#, SQL Server, Devexpress, and integrating online payment gateways, Paypal, Payer, PerfectMoney. I can start work right now
Hi,
I am expert PHP web developer and designer having more than 10 years experience with expertise in SEO, HTML, CSS, Mysql, Core PHP, Wordpress, Laravel, Codeigniter and more.
I can fix this code issue within 1 hour easily.
Contact me for completion of work urgently.