how can i validate randomly generated textboxes in php

Well not sure what you mean exactly but what you could do as far as validating any random generated code is:

Update a table witha validation key. Then store the value of that key into the text box. When X or Y happens have it:

$sql="select * from that_table where validation_key='yourkey'";
$result=mysql_query($sql);
$valid=mysql_num_rows($result);
if ($valid >0){
echo "it is valid";
} else {
echo "not valid";
}
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.