PHP Classes

form_custom_class::GenerateInputID()

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  Locating addresses on...  >  All threads  >  form_custom_class::GenerateInputID()  >  (Un) Subscribe thread alerts  
Subject:form_custom_class::GenerateInputID()
Summary:Change the name format of the generated input
Messages:2
Author:Form Class
Date:2007-03-26 02:22:24
Update:2007-03-26 22:11:22
 

  1. form_custom_class::GenerateInputID()   Reply   Report abuse  
Picture of Form Class Form Class - 2007-03-26 02:22:24
Hi All,

How can I change the name format of the input from: 'p_name_suffix' to just: 'name_suffix' without touching the form class core or form_date core? I just want to eliminae the prefix altogether. I use PHP 5 but could not figure out a way to do this without storing the prefix in the class var and giving access to it before invoking GenerateInputID(). Or is it something terribly simple that I'm missing?

TIA

  2. Re: form_custom_class::GenerateInputID()   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-03-26 22:11:22 - In reply to message 1 from Form Class
That prefix is meant to avoid name colisions between private inputs and inputs explicitly added by the developer to the form. You should never access private inputs from applications. Why do you want to change the prefix?