[solved] using data from a form in passthru()/system()
Posted: Fri Mar 09, 2007 9:41 am
feyd | Please use
My php:[/syntax]
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.
Thanks, Seth
feyd | Please use
Code: Select all
,Code: Select all
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>Code: Select all
<?php
$dictargum = $_POST['dictionary'];
echo'<pre width="100" style="color:navy; font-family:times;">';
passthru ('words.exe $dictargum');
echo '</pre>';
?>Thanks, Seth
feyd | Please use
Code: Select all
,Code: Select all
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]