Jump to content
Server Maintenance This Week. ×

Editting Records via web browser


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

Recommended Posts

  • Newbies

I think I'm going crazy!!! crazy.gif

As far as I can tell I have set up a page in Home Page properly so that I can edit a record in FMP 4.1

BUT!!!

I have all the fields on the details page and the idea was to fill in the ones you want to change and click edit and it will update the record - leaving the blank fields untouched.

Or at least that's how I thought it would work - of course what happened was that the fields left blank [unchanged] caused the record to get blank fields!!!!!

Do I add an if or something! help.... i can't edit fields!!!

------------------

_____________

Think Different,

Think for yourself.

Link to comment
Share on other sites

If you have setup a form to edit the record,

Try giving the input fields the current value of the fields in that record.

<HTML>

<HEAD>

<TITLE></TITLE>

</HEAD>

<BODY>

<FORM ACTION="FMPro" METHOD=POST id=form1 name=form1>

<INPUT TYPE="hidden" NAME="-DB" VALUE="YourDatabase.fp5">

 <INPUT TYPE="hidden" NAME="-Lay" VALUE="Your_layout">

 <INPUT TYPE="hidden" NAME="-Format" VALUE="Details.htm">

 <INPUT TYPE="hidden" NAME="-Error" VALUE="error.htm">

 <INPUT TYPE=HIDDEN NAME="-token" VALUE="25">

 <INPUT TYPE=HIDDEN NAME="-max" VALUE=1>

 <INPUT TYPE=HIDDEN NAME="-Edit">

<TR>

<TD>

<INPUT TYPE="text" NAME="FieldName1" SIZE=25 value="[FMP-Field: FieldName1]">

</TD>

<TD>

<INPUT TYPE="text" NAME="FieldName2" SIZE=25 value="[FMP-Field: FieldName2]">

</TD>

</TR>

<!-- edit buttons -->

<TR>

<TD>

<INPUT TYPE=SUBMIT NAME="-Edit" VALUE="Edit">

</TD>

</TR>

</FORM>

</BODY>

</HTML>

Link to comment
Share on other sites

This topic is 8753 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.