blakesmoore Posted August 30, 2012 Share Posted August 30, 2012 Hi, I have a html form... <form name="myform" action="blake.php" method="POST"> <textarea cols="40" rows="5" name="domains"> </textarea> <input type="submit" value="Submit" /> </form> I want to run a script on the outout of the text area. I have tried using this for file blake.php <?php $output = shell_exec('expiry '$_POST['domains']''); echo "<pre>$output</pre>"; ?> But i have no luck... any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/267801-shell_exec/ Share on other sites More sharing options...
trq Posted August 30, 2012 Share Posted August 30, 2012 Your script is riddled with syntax errors. I'd start by fixing those. Quote Link to comment https://forums.phpfreaks.com/topic/267801-shell_exec/#findComment-1373811 Share on other sites More sharing options...
blakesmoore Posted August 30, 2012 Author Share Posted August 30, 2012 What is wrong with the code? any help please? Quote Link to comment https://forums.phpfreaks.com/topic/267801-shell_exec/#findComment-1373817 Share on other sites More sharing options...
trq Posted August 30, 2012 Share Posted August 30, 2012 This line: $output = shell_exec('expiry '$_POST['domains']''); will produce an error. Do you have error reporting enabled? You should always when developing. On top of that, that one line of code opens a pretty large security hole. Quote Link to comment https://forums.phpfreaks.com/topic/267801-shell_exec/#findComment-1373821 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.