Hyperlink that automatically submits data to a Fabrik form

mygunfriday

Member
I was thinking of making a hyperlink to send in an email that if clicked will post to a Fabrik form automatically.

I know how to make the link and grab the data, I just don't know how to auto submit the form.

Anyone know how to do this in Fabrik?

- Jeremy
 
You can't. It's not a "Fabrik thing", it's an HTML forms / HTTP thing. You can't post (submit) data through a link.

Fabrik allows you to pre-fill the data on a form via the query string on a link, but you can't actually submit a form through a link with query string data, the HTTP protocol doesn't let you.

http://www.w3schools.com/tags/ref_httpmethods.asp

As you can see, for the POST method (submitting a form), the data has to be in the body of the http request, not in the "GET data" (the link).

-- hugh
 
Hi Hugh,

Thanks for getting back quickly.

As an alternative....
What if I link to a form with data in the query string and simply update a table with a run PHP form plugin set to run onload.

The form itself could just display a 'Thank You' message to the user. (I think there's an option to hide the submit button too...)

Is there any downside to having users access a form and never submit it? Or is there a better way to accomplish this?


-Jeremy
 
I haven't tried it yet. It's not on my to do list, likely I'll get to it tomorrow sometime. I'll let you know when I get there.
 

Members online

No members online now.
Back
Top