December 8, 200817 yr Newbies Howdy, I am developing a php site usning FM9 server. I would like to use s for three of the fields where short answers are required. The textarea works properly for data input, but when I try to edit the record via the web, the textarea field is always empty (I can't get the data from the record to show up in the web form). I believe this is due to the TEXTAREA not having a "value=" tag. Is there a solution to this using PHP or do I have to rebuild the whole site using XLS? Thanks in advance jeff
January 10, 200917 yr Newbies jeff-p Are you using the PHP wizard included with FMP9 server to build your site?
January 11, 200917 yr Author Newbies yes, I used the FMP9 server php wizard to build the starting point for the site. I found a web programmer who explained what I needed to to for textarea to work like I wanted with php. Basically, in a you must echo a variable rather than using PHP to put the information in the field directly (like you do with a input text field). this is because the does not support value= . Here is some code that works (it can probably be cleaned up abit by a real php programmer : ) <?php $OtherAwards = ( $record->getField('other activities', 0)) ?> <?php echo $OtherAwards;?> Jeff
January 11, 200917 yr Newbies Jeff-p I have had limited use with the FMP9 php site developer. If you are trying to build a complete site using php, I recommend the FMStudio plug in for dreamweaver. What I do know is that you need to indicate the action of the button on the edit form so it can perform the edit function in the filemaker php folder. You must also carry the record id as a hidden field on the page, within the form, of your edit page. This tells filemaker which record to edit. Your response page must be told to edit the record and you must have all fields which are on the edit form listed as fields to be edited. Without looking at the whole page code, it would be very difficult to see what is going on. Hope this helps!
Create an account or sign in to comment