lynx

theres a form with these fields

<form name="cpgform" id="cpgform" method="post" action="update.php">

<input type="text" name="user" size="30" class="textinput" />
<input type="password" name="pass" size="30" class="textinput" />
<input type="hidden" name="method" value="admin" />
<!--<input type="submit" name="submit" value="Login" class="button" />-->
<button type="submit" class="button" name="submit" value="OK">OK</button>

im using this command but its not working

echo 'user=MYUSERNAME&pass=MYPASSWORD&method=MySQL&submit=OK\n---' | lynx -accept_all_cookies http://DOMAIN/gallery/update.php

it doesnt even show
Could not authenticate you.

which is what it says if i enter the details by hand wrong

I doubt lynx accepts input like that unless it's from a terminal.

What is the form method? if it's GET, you can append the information to the destination URL itself...

It'd probably be better to use an automated tool like wget instead of an interactive one like lynx.