Tribiq CMS

Choose your language

input

Description

Attribute
Description
class Your initial CSS class for styling the input field
type Most details will be text, but could be text areas, radio buttons etc
name name of this input 
- this is the value of the 
request operation
id id of this input 
- for JavaScript
cssErrorClass Client-side JavaScript validation CSS class
errMsg Error message to display if validation fails
value The value/text to be displayed on initialization
<?php if($error['username'])
{ echo "class=\"input_text_error\
"";};?>
Server-side PHP validation

Tips

  • The “name” attribute must match the $_POST argument that you are expecting. If your PHP script is expecting $_POST[‘email’] for the username request, you must name your input “email” as well.
  • The initial class, cssErrorClass and PHP validation class (shown above as “input_text_error” must exist within your template-family style-sheet.

 

Top of Page