Jump to content

Can I use param to submit a form by URL ?


ole

Recommended Posts

Seems to use POST instead of GET. Can one just change method with no negative consequences, and then it works?

 

What exactly do you mean?  If you use GET you're passing variables via a URL and have to use the $_GET method to retrieve those values.  If you use POST then you have to submit your form somehow and use $_POST to retrieve all of your values.  Please read the basics.

So it seems I would need to do so re-prorgamming to make it work. The motivation for using a parameter to retrieve mySQL data is to monitor uptime. If there's another way, I could try an alternative way of monitoring uptime than to verify mySQL retrieved text on a web page.

 

I can monitor the web page and I could monitor the mySQL server port, but this might not catch some downtime situations as both web and mySQL server can be up, but for some reason the mySQL ouput is not showing on the web due to timeout etc.

Can you explain exactly what you're trying to do?  First you asked:

 

Can I submit the form by simply entering a URL with parameters?

 

Doesn't really even make sense, at least to me.  You can pass variables through the URL.  Now you're talking about up time and monitoring MySQL ports...  I'm lost  ???

I can monitor my php page, this is easy (a server checks the page every 5 minutes if a text string is on the web page). But I would like to monitor my php/mySQL system, this can be done if I monitor a URL which shows content from the mySQL database.

 

If I can use query parameters in the URL, instead of filling out the query form manually, that would display the database content so I can monitor uptime using a service like serviceuptime.com.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.