Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

TEXTAREA php -HELP!

Featured Replies

  • 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

  • 1 month later...
  • Newbies

jeff-p

Are you using the PHP wizard included with FMP9 server to build your site?

  • 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

  • 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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.