SirChick Posted October 9, 2007 Share Posted October 9, 2007 I am having problems with my form, it does not pass the value's over to my process script and i am uncertain as to why... This is what i have for my form: <form name="" method="POST" action="ukbankprocess.php" enctype="text/plain" id="Form1" onsubmit="return ValidateForm1(this)"> <input type="text" id="Editbox1" style="position:absolute;left:29px;top:76px;width:144px;font-family:Courier;font-size:19px;z-index:0" size="16" name="Deposit" value=""> <input type="submit" id="Button1" name="DepositButton" value="Deposit" style="position:absolute;left:68px;top:116px;width:75px;height:24px;z-index:2"> </form> Then in my process page i have: $MoneyInput = mysql_real_escape_string($_POST['Deposit']); if (isset($_POST['DepositButton'])) { If ($MoneyInput == 0) { Die ('You must place a value above 0 to input money!'); } ElseIf ($MoneyInput ==''){ Die ('Please insert the amount of money you wish to input'); } ElseIf ($MoneyInput > $MoneyInHand) { Die ('You do not have enough money to deposit this much!'); } Else { Echo 'w00'; } }Else{ Echo 'problem''; The result was "problem" gets echo'd so then i echo'd $MoneyInput and the value was empty... Quote Link to comment https://forums.phpfreaks.com/topic/72523-form-problem/ Share on other sites More sharing options...
kenrbnsn Posted October 9, 2007 Share Posted October 9, 2007 Remove the 'enctype="text/plain"' from your form tag. Ken Quote Link to comment https://forums.phpfreaks.com/topic/72523-form-problem/#findComment-365708 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.