• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Limit # of Submissions by IP Address?

Limit # of Submissions by IP Address? 14 years 2 months ago #9950

I know there is a way to limit submissions by a USER but does anyone know how to limit # of submissions by IP Address? I.P. Address? Thanks!
The administrator has disabled public write access.

Re:Limit # of Submissions by IP Address? 14 years 2 months ago #9965

  • bogdanc
  • bogdanc's Avatar
  • OFFLINE
  • Moderator
  • Posts: 669
  • Thank you received: 11
Hello,

In order to prevent more than one submission from the same IP Address then you can use a script similar to this one in the Default Value box of a field:
//<code> 
return $_SERVER['REMOTE_ADDR']; 
//</code>

in order to capture the user's IP address and use the following script in order to prevent more than one submission:
$rsip =$_SERVER['REMOTE_ADDR'];
if (mysql_num_rows(mysql_query("SELECT `SubmissionId` FROM `jos_RSFORM_SUBMISSION_VALUES` WHERE `FieldValue`='".$rsip."' AND `FormId`='56' LIMIT 1")) > 0)
$formLayout = 'You have already completed this form.';
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!