How can I execute php code directly rather than from page?
Posted: Mon Dec 14, 2009 10:32 am
I'm sorry I'm new to php and am starting to learn but I'm needing to execute a php comand from a page by typing the code in the address bar rather than opening the page and entering the data and clicking submit. I would like to be able to just pass the values directly.
This is the code portion that has a field and the submit button. so I want to send my value and submit it somehow.
Lets say the page it was on was: http://www.mysite.com/index.php
and this is the code for the field and the button:
<p>
enter your user: <input type="text" name="code" size="9" value="" />
<input type="submit" value="enter your user >" />
</p>
What I am wanting to be able to enter this into the address field on the IE is something like this:
http://www.mysite.com/index.php?type=te ... lue=123456
and it would then execute the code. But this doesn't work. I just don't understand PHP enough yet.
Thank you again for all your assistance.
Mythos
This is the code portion that has a field and the submit button. so I want to send my value and submit it somehow.
Lets say the page it was on was: http://www.mysite.com/index.php
and this is the code for the field and the button:
<p>
enter your user: <input type="text" name="code" size="9" value="" />
<input type="submit" value="enter your user >" />
</p>
What I am wanting to be able to enter this into the address field on the IE is something like this:
http://www.mysite.com/index.php?type=te ... lue=123456
and it would then execute the code. But this doesn't work. I just don't understand PHP enough yet.
Thank you again for all your assistance.
Mythos