Thread: Donate page
View Single Post
  #6  
Old 08-23-2010, 09:18 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Donate page

Stupid forum submitted my post before I wanted.

What I posted before was simply making sure it was posted as an integar.
For checking which was submitted you could do maybe something like this:
Code:
$var = intval($_POST['formName']); $var2 = intval($_POST['dropdownName']); if($var > 0 && $var2 > 0) { Both have stuff in them. You decide which to use } if($var > 0) { Value was found and is greater than 0 in the form. Do php stuff }; if($var2 > 0) { Value was found and is greater than 0 in the dropdown. Do php stuff };

Again, I'm a noob at php and may be insecure or used too much logic/faulty logic.
__________________
- Shane Munroe
Reply With Quote