This is my system . Users Logon to the website and using a form builder they create forms.
Once the form has been created , i dump the form html in my database . Now i have to give them a URL which they can use to call the created form on their website .
I want a little advice on how to create the URL’s using codeigniter . If the url opens in a browser , the form should come up .
This is my system . Users Logon to the website and using a form
Share
You can create a random string, place it in your database and use a controller to grab the corresponding data.
So:
site.com/getmyform/H43d0apeV(domain.com/controller/randomstring)When creating a random string you should consider a couple of factors:
The more users and longer timespan the longer the string could get in order to stay unique.
I assume there’s no need for the string to be as short as possible like with bit.ly-isch services.
Another thing to consider is security. The longer the string the less chance of someone (more likely something) “guessing” it.