Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
IOS Hotels
and
IOS Rentals
online booking systems for Elxis CMS.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
eform limited to a specific user
« previous
next »
Print
Pages: [
1
]
Author
Topic: eform limited to a specific user (Read 3886 times)
xmanhattan
Hero Member
Posts: 1235
If I'm still breathing, I'm doing something!
eform limited to a specific user
«
on:
November 05, 2012, 17:59:06 »
Hello all,
I would like to use the eform to be able to send it to a specific user maybe with a hidden code so that the form can only be completed once.
Has anyone tried to setup an eform to a specific user or know how it might be able to be done?
Logged
Bournias.net
datahell
Elxis Team
Hero Member
Posts: 10356
Re: eform limited to a specific user
«
Reply #1 on:
November 05, 2012, 22:47:18 »
To make the form run only for a specific user you have to modify eforms and add a user check like that:
global $my;
if ($my->id == xx) {
//run eforms
}
where xx the user id.
To make the form being submitted only once (even for the specific user) you need to store somewhere the information that the form has been submitted. You can store this information in the database or in a flat file (txt or php). A generic place where you can store this info in the database is
softdisk
.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
eform limited to a specific user