Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Qchmqs *facepalm* duh. Thanks!
Wait. You mean hidden form elements to ensure certain vars are sent to PHP is a valid use of an input element and not a hack? 😮
Edit: I just realized how stupid this comment is. Don't mind me, just absent minded and dumb today. -
vringar16198y@corscheid I know we aren't on SO, but what is the proper way of doing smt like this?
I just recently started using PHP and had no idea what else to do.😔 -
@vringar I'm in the same boat as you. I'm not a professional web developer. I only code as a hobby for now until I learn more and get into the field
-
sgoten708yJust use type hidden, will not be visible and when you submit the form the back end will receive just like the others inputs
-
@sgoten I've just implemented exactly that. Somehow I overlooked the existence of hidden type input elements.
Related Rants
Started collaborating on a friend's project.
Just pulled a crazy stupid hack just to get it to work as intended.
<input type="text" name="page" value="somepage" style="display:none">
My friend and I are still loling at this.
undefined
hack
wtf
html
php
lol
form