Jump to content

Simple Question (I think)


KillZoneZ

Recommended Posts

Basically i want to check through php if a HTML element's attribute value is true, for example:

<input id="example" maxlenght="10"(...)/>

//This is me imagining how it could be

<?php
if(#example:maxlenght = 10) {
echo "Good to go";
}
?>

I'm not sure if i'm clear.

 

Thank You

Link to comment
Share on other sites

This is a silly question on my part, but since the user/client can't change the attribute why would you need to check it back at the server when the POST/GET data is received? It would be the same as when it was sent out. And if the concern is strictly about the maxlength attribute, then your script s/b doing input validation per se when it receives the input to avoid exactly that kind of web interaction and not be dependent on the html value.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.