macbook Posted April 16, 2012 Posted April 16, 2012 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
webko Posted April 17, 2012 Posted April 17, 2012 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?
macbook Posted April 17, 2012 Author Posted April 17, 2012 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 ?
macbook Posted April 21, 2012 Author Posted April 21, 2012 I managed to fix it via other method, i used page redirect function to fix the issue.
Recommended Posts
This topic is 4866 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 accountSign in
Already have an account? Sign in here.
Sign In Now