winmastergames Posted December 20, 2007 Share Posted December 20, 2007 Hi I started off making a script so you can type in stuff to a text box and it uses the GET function but i tried to use it with a drop box but it didnt work heres the error I dont quite get what the error means Fatal error: Uncaught exception 'com_exception' with message 'Parameter 2: Type mismatch. ' in C:\xampp\htdocs\WAC-BETA\command-server.php:3 Stack trace: #0 C:\xampp\htdocs\WAC-BETA\command-server.php(3): com->Run(NULL, 7, false) #1 {main} thrown in C:\xampp\htdocs\WAC-BETA\command-server.php on line 3 Heres the script with the drop box Just Part of the Whole Script because i want to make this script secure and stuff and i dont want people using this script I made and use it and stuff but you dont need the whole page this is the part that has a problem in? <form action="command-server.php" method="get"> Name: <select name="commanddrop" style="width: 123px"> <option value="notepad.exe">Notepad</option> </select> <input type="submit" /> </form> Heres the script that has the GET function taken away what it executes in the PHP code for security Sorry <? Sorry taken away for security Sorry taken away for security($_GET["command"], 7, false); ?> Successfully completed the Operation <br> <br> <a href="page-2.php">Continue</a> Whats wrong? Quote Link to comment https://forums.phpfreaks.com/topic/82462-solved-drop-boxes-and-the-get-function/ Share on other sites More sharing options...
winmastergames Posted December 20, 2007 Author Share Posted December 20, 2007 If you need the full code of what it does ask and I may be able to give it to you with the concent of my client im working with to make this script Quote Link to comment https://forums.phpfreaks.com/topic/82462-solved-drop-boxes-and-the-get-function/#findComment-419234 Share on other sites More sharing options...
winmastergames Posted December 20, 2007 Author Share Posted December 20, 2007 Sorry but is it just me or is that error saying that the GET function has not returned any resault like nothing has been typed into like the Text box like i was using before? Quote Link to comment https://forums.phpfreaks.com/topic/82462-solved-drop-boxes-and-the-get-function/#findComment-419235 Share on other sites More sharing options...
winmastergames Posted December 20, 2007 Author Share Posted December 20, 2007 Solved it myself dont worry Quote Link to comment https://forums.phpfreaks.com/topic/82462-solved-drop-boxes-and-the-get-function/#findComment-419237 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.