Search found 7 matches

by noclss2000
Mon Jul 03, 2006 11:04 am
Forum: PHP - Code
Topic: using radio buttons in html and php...
Replies: 4
Views: 1284

why not just use that as a dropdown for Mr./Mrs./Ms.?
It'll look a lot cleaner
by noclss2000
Thu Jun 22, 2006 10:59 pm
Forum: PHP - Code
Topic: Trying to get a classification form to work
Replies: 7
Views: 435

I got it working, you were missing another ")" after the isset and that's what was blowing it up. I figured out the rest.
by noclss2000
Thu Jun 22, 2006 10:42 pm
Forum: PHP - Code
Topic: Trying to get a classification form to work
Replies: 7
Views: 435

This isn't tested if(isset($_POST['values']){ // Check to see if they submitted anything $total = array_sum($_POST['values']); // Sum up the total if($total > 20){ // User is in class one } elseif($total >10){ // User is in class two } elseif($total > 5){ // User is in class three } else{ // User i...
by noclss2000
Thu Jun 22, 2006 3:39 pm
Forum: PHP - Code
Topic: Trying to get a classification form to work
Replies: 7
Views: 435

Thanks, that's pretty much what I was thinking it should look like but wasn't sure on the exact syntax.

Looks like that should work pretty good, thanks a bunch!
by noclss2000
Thu Jun 22, 2006 12:41 pm
Forum: PHP - Code
Topic: Trying to get a classification form to work
Replies: 7
Views: 435

I just have no idea how to go about doing it. I thought that I could just do a list of if's but somebody else said something about using some type of array but as I said, I'm fairly new to PHP and that is over my head. The only things I've really done with PHP is doing management sections for websit...
by noclss2000
Thu Jun 22, 2006 11:28 am
Forum: PHP - Code
Topic: Can anyone tell me what is wrong with those two scripts??!!
Replies: 13
Views: 624

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] <? $abc=2...
by noclss2000
Thu Jun 22, 2006 11:12 am
Forum: PHP - Code
Topic: Trying to get a classification form to work
Replies: 7
Views: 435

Trying to get a classification form to work

I'm fairly new to PHP and so I'm not completely fluent in the language. What I'm trying to do is this: I have a classification form which basically is setup that each checkbox is worth a value, normally between 1 to 3. When the user checks the boxes that apply to them and clicks "Submit" I...