How to send data of disabled HTML input field of the form to another page through PHP superglobals?

17 Views Asked by At
<form action="../../Controllers/add-service-action.php" method="GET">
        <label for="service_id">Service Id: </label>
        <input type="text" name="service_id" disabled value="<?php echo generateServiceId(); ?>">
        <br><br>
        <label for="service_name">Service Name:</label>
        <input type="text" name="service_name" id="service_name">
        <br><br>
        <label for="service_price">Service Price:</label>
        <input type="text" name="service_price" id="service_price">
        <br><br>
        <input type="submit" value="Add Service">
</form>

Here, service_id is disabled. I am not getting data of service_id in add-service-action.php page. How can I get thatg?g

0

There are 0 best solutions below