Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5786 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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
Posted

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
Posted

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!

This topic is 5786 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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