Jump to content

Recommended Posts

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...

Link to comment
https://forums.phpfreaks.com/topic/72523-form-problem/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.