Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP redirect to FMP:// links with a script parameter

Featured Replies

I am trying to send clickable links which trigger a script in FileMaker databases via email to PC Outlook users via plain text emails (generated by a FileMaker database).

 

The users are on locked-down workstations in a hospital environment and can not add file protocol associations to Outlook's settings.

Since this configuration of Outlook *does* convert URLs that start with "http" into clickable links,
I was thinking that I could get around the Outlook limitation by sending an http: link that looks something the URL in the attachment   (i had trouble inserting the URL via <code> into this post (it kept coming up blank), so, I've attached an image of it.


With the code of "t.php" being:

<?php

$url=$_GET['var'];

?>
<html>
    <head>
        <title>One second please... :)</title>
        <meta http-equiv="refresh" content="10;URL='<?php echo $url; ?>'" />
    </head>
    <body>
        <p><a href="<?php echo $url; ?>">Redirecting to <?php echo $url; ?></a></p>
    </body>
</html>




 however, the FileMaker script parameter  (&param=abc123) is getting dropped.

Do you know how I might be able to redirect to the entire URL with the parameter in tact???

I'm not married to PHP to pull this off..   any thoughts?

 

Many thanks in advance.
 

post-62625-0-26191100-1374012228_thumb.p

Not sure about your situation but it often works to use a var in a pathname rather than a param. Not sure why one works and then other doesn't. I think there's examples in the Help and FTS 12 has examples of using var in a pathname.

$url may need have sections of it URL encoded for embedding into email.

 

Does it work if you copy and paste it from the echo of the example?

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.