Hi, Tuesday, October 1, 2002, 1:36:43 PM, you wrote: JB> is there a way to for an input box to come up looking for a value? I know JB> there are a few ways I could resolve my current issue, but I would prefer to JB> display an inputbox, and use that value in my query.
JB> basically I would do a $HTTP_SERVER_VARS['PHP_SELF'] as the action of a JB> form, but then I would have to get a value to pass to the query. this would JB> be for prepaid phone cards. if somebody selected to recharge then I would JB> like an input box to be displayed asking the amount they would like to JB> recharge. JB> -- JB> Jeff Bluemel You need something like this: <head> <script language="JavaScript"> function ask(){ if(document.form1.Message.value = prompt('Name','')) form1.submit(); } </script> <head> </head> <form name="form1" action="<?echo $_SERVER['PHP_SELF']?>" method="post"> <INPUT TYPE="HIDDEN" VALUE="" NAME="Message"> <input type="button" value="go" onclick="ask();"> </form> -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php