php script from a browser
|
Light Poster
|
|
| 10Feb2011,05:28 | #1 |
|
Hello! Suppose that a php script exists in a server and i have access as a client.that script has 4 args first and second are char args third and forth are int args. If i want to run that script from my browser what syntax i have to use?
|
|
Go4Expert Founder
|
![]() |
| 10Feb2011,07:03 | #2 |
|
PHP scripts are run directly using the browser URLs
|
|
Ambitious contributor
|
|
| 10Feb2011,09:21 | #3 |
|
You need to know the url variables. If you know that you can then add values to them. Example url
Code:
http://www.mysite.coom/index.php?uid=0000001&sid=1 the variables would be retrieved like so PHP Code:
PHP Code:
|
|
Light Poster
|
|
| 10Feb2011,14:21 | #4 |
|
Pein87 first of all thank you! Could you explain me more about post method? If my script uses a post method how can i change the variables. I tried to make a post form in my pc,that uses the full url of the script that i want as an action. But every time, the browser is trying to find the url in the root directory that i placed my script.//ex C:/Users/mikeb/Desktop/
|
|
Invasive contributor
|
![]() |
| 10Feb2011,19:43 | #5 |
|
Quote:
Originally Posted by mike_ledis Another way of doing it is to simply make a simple form like :- You can do this by using Firebug a great addon for mozilla Code: html
|



