[ic] &and + require in profile.order, how ?

ns linux at post10.tele.dk
Thu Apr 7 02:44:21 EDT 2005


Kevin Walsh wrote:

>ns [linux at post10.tele.dk] wrote:
>  
>
>>I am missing (some) understanding of how profile.order and [error ... ]
>>is working together, and it didn't help looking in the mail archives.
>>
>>mainly I have two fields on my checkout page 'fname' & 'lname'  (first &
>>last name) in etc/profile.order I have something like
>>
>>__NAME__                            order_profile
>>fname=required Firstname
>>lname=required Lastname
>>address1=required
>>city=required
>>zip=required
>>email=required
>>phone_day=required
>>&fatal=yes
>>__END__
>>
>>and the using in checkout.html
>>[error name=fname std_label="Name" required=1] [value fname]
>>[error name=lname std_label="Name" required=1] [value lname]
>>
>>I get something like
>>
>>Both values are entered:
>>Name  ..a firstname..
>>Name ..a lastname..
>>
>>No first name are entered:
>>Name (Firstname)     (written in red)
>>Name .. a lastname ..
>>
>>OK, what I really do want is
>>Name ..a firstname.. ... a lastname..
>>
>>and did expect to write something like in profile.order
>>&and fname=required,lname=required Part of name is missing
>>
>>and in checkout
>>[error name=????? std_label="Name" required=1] [value fname] [value lname]
>>
>>I have tried quite many different combinations, but nothing works,
>>please tell me one way this can be done.....
>>
>>    
>>
>You probably want something like the following:
>
>     [error name=fname std_label="Name" required=1]
>     <input tag for the fname form field>
>     <input tag for the lname form field>
>
>And then the following in your profile:
>
>    &and fname=required, lname=required Anonymity is overrated
>
>Remember to restart/reconfig after changing the profiles.order file.
>
>  
>
That was also what I did think, but I don't get an 'error' when lname is 
empty.
(And I did just try again, just to be shure. Only when fname is empty I 
get an error...)
((and I didn't pres a space or like in the lname field))

- niels


More information about the interchange-users mailing list