April 16, 201213 yr Hello FM people + php people, I am looking for help . I am developing fm solution that linked to web site via php. this task is 97% completed. the place i am stuck with delete function. How it works. This is Agenda Book. So users will update there agenda system from web site (01 or 2 uers will use it). I grab the delete code function from google search and i paste it before body tag. the code is </style> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> </head> <script language="javascript"> <!-- Hide from non-JavaScript Browsers function ConfirmChoice() { answer = confirm("Do you want to delete this appoinment ?") if (answer !=0) { location = "deleteapp.php?id=<?php echo $found_records_row->getRecordId(); ?>" } } //Done Hiding--> </script> <body> ** Records will display on table view (5 records per page) The Problem , When ever i delete the record it does not delete the record that i select, it delete the some other record. (snap shot attached) fmforums.mov
April 17, 201213 yr Question - when you actually render this page in a browser, how does the line deleteapp.php?id=<?php echo $found_records_row->getRecordId(); ?> actually come out looking?
April 17, 201213 yr Author Hello Webko, Many Thanks for replying. This is the result of when deleteapp.php load http://127.0.0.1/atlantixbro/deleteapp.php?id=128. This is Get record id. Note: I also create the text link called ("Delete") (Right down the delete icon red colour "X" ). When i click that text link it perfectly works. only the problem outcome when i try to pass the parameter from javascript. Question: Is this Problem something related with Record Set ?
April 21, 201213 yr Author I managed to fix it via other method, i used page redirect function to fix the issue.
Create an account or sign in to comment