vendredi 20 mai 2016

Read Checkbox Data Attribute in PHP

I have a checkbox with a data attribute attached to it:

<input type="checkbox" 
       name="plugins[]" 
       value="google-analytics-dashboard-for-wp" 
       data-path="gadwp" 
       checked="checked" /> 
Google Analytics Dashboard for WP<br>

Is it possible to access the "path" data attribute directly through PHP? I need this checkbox to be able to pass two values and also provide a readable name ("Google Analytics Dashboard for WP)




Aucun commentaire:

Enregistrer un commentaire