Hello,

I am trying to create a clickable button that pass value to the next page after the button being clicked. Yet, now what I have is a button that cannot bring me to the next page.

study_progress_table.php

<button type="button" onClick="parent.location='add_student_progtab.php?study_package_id="'.<?php echo $study_package_id; ?>."'">Add Study Progress</button><br><br>

Please help

Member Avatar for dany4ev_1

Hi davy_yg,

You could try using javascript and once you are on the next page you sould manipulate the value that was passed on via the first page.

Try using something like below for instance:

<button type="button" onClick="window.location.href='add_student_progtab.php?study_package_id="'.<?php echo $study_package_id; ?>."'">Add Study Progress</button><br><br>

Hope this solves your query, do inform otherwise I'll gladly help ya out :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.