fmwebschool.com
Top Experts [learn more]Top 4-10
webko

9743 K
bandmandq

2458 K
Genx

1525 K
4. tcmeyers
5. kbata
6. Martie
7. Hammerton
8. rrenfrow
9. bneeman
10. plegler
Welcome, Guest. Please login or register.
May 19, 2013, 08:36:17 PM

Login with username, password and session length
Search:     Advanced search
FMWebschool releases more educational FMStudio webinars - check them out here:
http://www.fmwebschool.com/webinars.php
27455 Posts in 6062 Topics by 1523 Members
Latest Member: donok
* Home Help Search Calendar Login Register
+  fmwebschool.com
|-+  PHP Web Publishing Technologies
| |-+  FileMaker's New PHP API
| | |-+  Find with GET instead of POST
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Find with GET instead of POST  (Read 879 times)
AlanBrooks
Newbie
*
Offline Offline

Posts: 1


Find with GET instead of POST [Worth 25 Kudos points!]
« on: April 07, 2010, 10:04:51 AM »

Noob here.  Sorry if these are stupid questions.  I have built a few sites, none of which had to be secure, with XSLT but this is my first foray into php and the Filemaker PHP API.  I am doing so mainly because I see php as the future for the Filemaker custom web interface and I believe that the php login might be more secure (if I employ SSL on the server.)

With Filemaker 10, using the Filemaker PHP Site assistant, I can use and modify examples of performing a query which uses POST but am have trouble doing exactly the same query with GET. 

1.)  How is a query performed (using the supplied support files like Filemaker.php and fmview.php) using GET instead of POST?  I've dumped the _POST array and constructed an URL that mimics the query using GET but it's not working.  Does the API allow for this type of search or will I have to add functions to allow for this?  (FYI: For the part I am dealing with where I wish to use GET instead of POST, I am not concerned that the user can see the query in the URL.)

2.)  If I use SSL on either server, am I correct that the php login is inherently more secure than the one the XSLT Site Assistant produces?
Logged
Paolo M.
Jr. Member
**
Offline Offline

Posts: 50
Kudos: 100



« Reply #1 on: May 27, 2010, 04:08:18 AM »

Try changing all occurences of POSTwith REQUEST!
Ciao
Paolo
Logged
webko
Global Moderator
Hero Member
*****
Offline Offline

Posts: 2050
Kudos: 9743



WWW
Applications:
« Reply #2 on: May 27, 2010, 03:35:35 PM »

More fully, in the handler file (the one you are posting or getting to), there will be a number of times that you see blah = $_POST['field']

You can either replace them with $_GET['field'] which will obtain GET objects, or $_REQUEST['field'], which handles both GET and POST

As for logins... If you secure the connection between the end user and the web server with SSL, either method is pretty secure, as the transmitted data in the wild is encrypted.

Cheers

Webko
Logged

tim.webko_at_gmail.com
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!