close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Update/Delete/Insert in one Form?

Thread began 6/07/2011 5:52 am by info4753 | Last modified 6/08/2011 11:12 am by info4753 | 2701 views | 10 replies |

info4753

Update/Delete/Insert in one Form?

Is it possible to create with FB a single form for insert/update/delete functions? Or do I have to create 3 pages?

Sign in to reply to this post

Jason ByrnesWebAssist

you can add insert update and delete forms to the same page, just make sure that each form uses a unique name for the submit button.

you will need to use the submit buttons as the trigger for the insert update and delete behaviors.

Sign in to reply to this post

info4753

This post has been deleted.

info4753

Do I have to insert 3 forms?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, you need a seperate form for each action.

Sign in to reply to this post

info4753

So the customer sees 3 forms?

By the way I try to built a form with FB and added the update server behaviour from data assist but filtering the recordset with URL-Parameter doesn't work. What do I wrong?

I have a list of recordsets with a link like form.php?ID=3 and on the edit page a form to edit its data. But filtering via value <?php echo $_GET['ID']; ?> is not working.

Sign in to reply to this post

Jason ByrnesWebAssist

yes, the customer would see 3 form.


Send a copy of you page so i can see the code in order to see what may be wrong.

Sign in to reply to this post

info4753

Thanks Jason. This drives me crazy ...

Attached Files
firmen_form.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

your recordset code does not use the ID querystring variable, it uses the FIRMID querystring variable:

php:
$colname_rsFirmen = "-1";

if (isset($_GET['FIRMID'])) {
  $colname_rsFirmen = (get_magic_quotes_gpc()) ? $_GET['FIRMID'] : addslashes($_GET['FIRMID']);
}
mysql_select_db($database_HPharm, $HPharm);
$query_rsFirmen = sprintf("SELECT * FROM firmen WHERE FIRMID = %s", GetSQLValueString($colname_rsFirmen, "int"));
$rsFirmen = mysql_query($query_rsFirmen, $HPharm) or die(mysql_error());
$row_rsFirmen = mysql_fetch_assoc($rsFirmen);
$totalRows_rsFirmen = mysql_num_rows($rsFirmen);




your link:
form.php?ID=3

should be:
form.php?FIRMID=3

Sign in to reply to this post

info4753

Sorry for that, with ID I've mentioned a basic example, I DO pass FIRMID as URL-parameter from the list to the form page and filter it for the recordset (works) and update behaviour (deosn't work).

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...