Information
href refers to a variable string after ? symbol. $(first_name) evaluates the first_name variable value. a0 to a13 are CGI variables. & along with the amp; represents the & in the string.
_wml();
_card( "id='info'" );
_do( "type='accept' label='submit'" );
__go( "href='#submit?a0=$(first_name)&
a1=$(last_name)& a2=$(org)&
a3=$(title)& a4=$(address)&
a5=$(city)& a6=$(state)&
a7=$(zip)& a8=$(country)&
a9=$(sex)& a10=$(tel)&
a11=$(fax)& a12=$(mobile)&
a13=$(email)&' ");
do_();
_fieldset groups name and its input. 'first_name' and 'last_name' are input variables.
_p();
_fieldset( "title='Name'" );
quote( "First Name: " );
__input( "type='text' name='first_name' maxlength='36'" );
__br();
quote( "Last Name: " );
__input( "type='text' name='last_name' maxlength='36'" );
__br();
fieldset_();
p_();
group inputs of organization and title.
_p();
_fieldset( "title='Organization'" );
quote( "Company: " );
__input( "type='text' name='org' maxlength='36'" );
__br();
quote( "Title: " );
__input( "type='text' name='title' maxlength='36'" );
__br();
fieldset_();
group address, city, state, zip and country inputs.
_fieldset( "title='Address'" );
quote( "Address: " );
__input( "type='text' name='address' maxlength='64'" );
__br();
quote( "City: " );
__input( "type='text' name='city' maxlength='36'" );
__br();
quote( "State: " );
__input( "type='text' name='state' maxlength='36'" );
__br();
quote( "Zip: " );
__input( "type='text' name='zip' maxlength='36'" );
__br();
quote( "Country: " );
__input( "type='text' name='country' maxlength='36'" );
__br();
fieldset_();
select one value from Female or Male. The select variable has the name sex.
_fieldset( "title='Sex'" );
_select( "name='sex'" );
_option( "value='Female'" );
quote( "Female" );
option_();
_option( "value='Male'" );
quote( "Male" );
option_();
select_();
fieldset_();
group contact information. format='M' in the __input method allows any characters.
_fieldset( "title='Contact'" );
quote( "Tel: " );
__input( "type='text' name='tel' format='*M'" );
__br();
quote( "Fax: " );
__input( "type='text' name='fax' format='*M'" );
__br();
quote( "Mobile: " );
__input( "type='text' name='mobile' format='*M'" );
__br();
quote( "Email: " );
__input( "type='text' name='email' format='*M'" );
__br();
fieldset_();
p_();
card_();
display first_name and last_name variables in the card submit.
_card( "id='submit'" );
_p();
quote( "$(first_name) $(last_name)" );
p_();
card_();
wml_();
|