• 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: Only allow one submission per IP address

Only allow one submission per IP address 12 years 11 months ago #13708

  • Barboo
  • Barboo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
How can I restrict a form so that each IP address can only submit the form once? I'm using RSForm as more of a voting tool in this case, so I only want each person to be able to "vote" once. I searched on the forums, found some script to try inserting in the "Script called on form display" tab, but that discussion was for RSForm Pro and didn't work for me in RSForm.
The administrator has disabled public write access.

Re:Only allow one submission per IP address 12 years 11 months ago #13709

  • Barboo
  • Barboo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
By the way, this is the script I tried adding:



$rsip =$_SERVER;
if (mysql_num_rows(mysql_query("SELECT `SubmissionId` FROM
`jos_RSFORM_SUBMISSION_VALUES` WHERE `FieldValue`='".$rsip."' AND `FormId`='70' LIMIT 1"))
> 0)
$formLayout = 'You have already completed this form.';



With my FormId (70) inserted.
The administrator has disabled public write access.

Re:Only allow one submission per IP address 12 years 11 months ago #13710

  • Barboo
  • Barboo's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 15
And I don't know why a smiley face is displaying in my code. It should be a closed parenthesis.
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!