PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I am trying to do a simple form and dicto lookup, and I am running into problems again.
My form looks like:
[syntax="html"]<form method="post" action="LatinDict.php">
Parse/Define:<input name="dictionary" type="text" /><input type="submit" />
</form>
The form is being passed, i tested in get mode, but the result is that the "$" is stripped out of the system() line, and the dictionary looks up "dictargum" as a word.
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Last edited by seth.7 on Fri Mar 09, 2007 2:41 pm, edited 1 time in total.
2. What you did is very dangerous, the script is vulnerable to system command execution. Check the manual on passthru, there is a huge warning banner explaining why and how.
it works - thanks for putting up with a neophyte. I saw these issues, I will definitely be using the security precautions. at the moment I kind of need to do this.