Mobile app version of vmapp.org
Login or Join
Gonzalez347

: The URLs should be something like www.example.com/?id=XXX. Based on the ID parameter, you can extract the required data from your database and pass it in the response. I have learned how

@Gonzalez347

The URLs should be something like example.com/?id=XXX. Based on the ID parameter, you can extract the required data from your database and pass it in the response.


I have learned how to retrieve data from a database to a single page
by using a form


I think you are using the POST method in your form, and because of that the parameters will be passed to your application in the request body and not in the URL.

Use the GET method instead. If the URL on which the form is passed is /abc.html and the form parameter is an ID, then the URLs should be in the form of: /abc.html?id=XXX. But Google's web crawler cannot fill in your form to crawl those URLs, so you should create a page containing a list of all those URLs. Whether the user submits the form and goes to the URL, or types the /abc.html?id=XXX URL into his browser, the response from the server should be the same.

Assuming that you are using PHP, this might be helpful to you (see the "Get Method" section).

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Gonzalez347

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme