[phorm] [Phorm:] Re: Listing with PHORM_DBFNREC

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 14 May 2003 22:13:26 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#2690) Re: Listing with PHORM_DBFNREC 
            <http://www.phorm.com/support/?rev=2690> 
  AUTHOR:   Patrick O'Hara 
  DATE:     May 14, 2003 at 6:13 p.m. EST 

  Reply To: (#2689) Re: Listing with PHORM_DBFNREC 
  Author:   Rich 
  Date:     May 14, 2003 at 6:04 p.m. EST 

Hi Rich, 

Dear I say it - do you remember that script I wrote for you that turned out to 
be redundant... You'll want to do something like that - or try the following 

for ($i = 0; $i < $PHORM_DBFNREC; $i++) { 
-- $fieldName = "F" . $i + 1; 
-- echo "<input name=/"$fieldName/">"; 
} 

The reason it wouldn't work as you expected it to the first time, is that PHP 
uses single quotes ' and double quotes " in different ways. To be able to 
include variables in the string, you need to use " for the echo statements. 
There are always exceptions, but using the " will help. Its also the only way 
to get arrays to output correctly when referenced inside a string. 

Check out the PHP Docs at www.php.net 

Hope this helps, 

Patrick O'Hara 
WhitsundayIT 
QLD, Australia 

patrick@xxxxxxxxxxxxxxxx 
www.whitsundayit.com 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts: