Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am making a registration page on my website.
I don't want my users to type their own country. I am wondering how to make a PHP/JS/jQuery script that will work with this:
<input type="hidden" name="country" value="!!COUNTRY CODE HERE!!">
If you want to get the users country, you're going to need to do it with (qualified) guess using their IP address - see this question and answer for an easy PHP-script for doing so.
If this is for a user registration page and the users country is important to get right, though, I would recommend a dropdown-menu where the users can choose the country for themselves instead. Guessing which country a user is from based on their IP isn't guaranteed to be correct every time. Some people might be using static IP addresses or VPNs or some proxy of sorts, which would give you a wrong result.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 days ago.
Improve this question
We have an e-commerce site that allows you to check out as a guest.
An individual has been using it to check if stolen credit card numbers function.
We plan to add invisible captcha, which helps for people using scripts/headless browsing/automation, but it doesn't stop someone from manually using it this way.
We could track a cookie that starts to prevent/timeout the user from checking out if there are enough recent requests, but that's easily workaround-able.
It seems like a situation where it can't be limited too much further because normal users need to be able to check out, but are there any other specific methods that would help?
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I made a simple website using html and php.
How to save to a separate file:
IP address of user that came to the website
Time each user spent on the website
Thanks
I think it's a good idea to use Cookies in PHP that unique user just has a unique cookie, not Ip.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Need help , I want to know and implement this problem.
My problem is, In textfield i give greater than or equal to 10 digit mobile number(International Numbers or National Numbers) . when i click submit button need to send some message to that number..
Please give the sample code with brief example using php.
You can't send SMS directly from PHP. You will have to make use of an SMS gateway API. Nexmo is a good service.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to make a search for my website to search the user form my database. Let say I want maybe the most popular or searched user be search priority instead of some no name guy and without using other search engine api/framework. I rather doing this with my finger. So how can i acheive it?I using php for server side ,javascript client side,mysql for database.
In your database add score column and add +1 to it whenever user is visited from search results.
After that simply add ORDER BY score DESC to your query when displaying results.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am making an open-source addon for firefox and chrome called and I am wondering if there is a way to control an email service like yahoo using javascript?
You can control the look of the page and probably (although I cannot be sure) send and edit messages without having to use the on-page buttons, but you cannot do server-side stuff such as logging into an account from a page without a log-in on it or sending a message from a page other than the email sending page. If you have any specific questions about controlling one specific thing, please add them in the comments, and I may answer them.