Green Bay Packers Forum

Welcome to your Green Bay Packers Online Community!

Since 2006, PackersHome has been providing a unique experience for fans.
Your participation is greatly anticipated!
Login or Register.
10 Pages«<45678>»
Options
Go to last post Go to first unread
Offline dhpackr  
#51 Posted : Sunday, September 20, 2009 8:22:39 PM(UTC)
Rank: Registered

Joined: 12/12/2007(UTC)
Applause Given: 36
Applause Received: 36
" said: Go to Quoted Post
The picks are predicated on the username already. It takes the global variable from the website. If you were to submit picks, it'd register as YOUR username :)


perfect, can u submit the picks, are the picks being stored in a db table, then retrieved from the db and displayed on a page based on memberid or username?

add the code i gave you to your file

change
&lt;input name='rdoGame01' type='radio' value='Titans' /&gt;Tenneesee Titans
&lt;input name='rdoGame01' type='radio' value='Steelers'/&gt;Pittsburgh

with...................................................................................................

&lt;?php
&lt;input type="radio" name="rdoGame01" value="1" class="textbox"&lt;?if($rdoGame01=="1"){echo " checked ";}?&gt;>Tenneesee Titans

&lt;input type="radio" name="rdoGame01" value="0" class="textbox"&lt;?if($rdoGame01=="0"){echo " checked ";}?&gt;> Steelers
?>
Offline Zero2Cool  
#52 Posted : Sunday, September 20, 2009 8:30:01 PM(UTC)
Rank: Premier Member

Yahoo! NCAA March Madness - Gold: 2015Yahoo! Fantasy Football - Gold: 2009FleaFlicker Fantasy Football - Silver: 2010Yahoo! NCAA March Madness - Silver: 2011FleaFlicker Fantasy Football - Bronze: 2016ESPN NCAA March Madness - Bronze: 2010Yahoo! NCAA March Madness - Bronze: 2013

United States
Joined: 10/13/2006(UTC)
Location: Green Bay, WI
Applause Given: 2,502
Applause Received: 4,047
" said: Go to Quoted Post
" said: Go to Quoted Post
The picks are predicated on the username already. It takes the global variable from the website. If you were to submit picks, it'd register as YOUR username :)


perfect, can u submit the picks, are the picks being stored in a db table, then retrieved from the db and displayed on a page based on memberid or username?


Yes sir. I'm using the username from the main website's db and using a separate db to store the picks. The picks are also retrieved from that location based on the username.

So if I were to submit my picks logged in as SlickVision and then next week as Zero2Cool, I'd be fux0red. :)
Offline dhpackr  
#53 Posted : Sunday, September 20, 2009 8:45:19 PM(UTC)
Rank: Registered

Joined: 12/12/2007(UTC)
Applause Given: 36
Applause Received: 36
" said: Go to Quoted Post
" said: Go to Quoted Post
" said: Go to Quoted Post
The picks are predicated on the username already. It takes the global variable from the website. If you were to submit picks, it'd register as YOUR username :)


perfect, can u submit the picks, are the picks being stored in a db table, then retrieved from the db and displayed on a page based on memberid or username?


Yes sir. I'm using the username from the main website's db and using a separate db to store the picks. The picks are also retrieved from that location based on the username.

So if I were to submit my picks logged in as SlickVision and then next week as Zero2Cool, I'd be fux0red. :)


look at post above this one^^^^^^^^^^^^^^^^^^^^^^^^^^ ^
Offline dhpackr  
#54 Posted : Sunday, September 20, 2009 8:50:44 PM(UTC)
Rank: Registered

Joined: 12/12/2007(UTC)
Applause Given: 36
Applause Received: 36
now there is no code in that file u sent to connect to db or retrieve data from db and display on form.

that is not a dynamic database driven form
Offline Zero2Cool  
#55 Posted : Sunday, September 20, 2009 8:50:53 PM(UTC)
Rank: Premier Member

Yahoo! NCAA March Madness - Gold: 2015Yahoo! Fantasy Football - Gold: 2009FleaFlicker Fantasy Football - Silver: 2010Yahoo! NCAA March Madness - Silver: 2011FleaFlicker Fantasy Football - Bronze: 2016ESPN NCAA March Madness - Bronze: 2010Yahoo! NCAA March Madness - Bronze: 2013

United States
Joined: 10/13/2006(UTC)
Location: Green Bay, WI
Applause Given: 2,502
Applause Received: 4,047
Okay, how does it get checked? Is that code have some hidden magic I don't see in the code or does it need to be validated elsewhere? In short, how does it validate? lol
Offline dhpackr  
#56 Posted : Sunday, September 20, 2009 8:56:57 PM(UTC)
Rank: Registered

Joined: 12/12/2007(UTC)
Applause Given: 36
Applause Received: 36
here is validation

function check_pick() {
//if (Auth::isAdmin())

//return true;
this chunck of code allows admin to
bypass validation remove the slashes to make it so admin would have to check all boxes


$is_valid = true;
if($this->rdoGame01=="" or $this->rdoGame02=="" ){
$is_valid=false;
$this->add_error('Make a selection!');
}
return $is_valid;

}

this validates the first two radio buttons

in other words....
if rdoGame1 is equal to nothing or =="" then display this error

make a selection

if rdoGameo1 == true then submit

you would have to add 16 variables to this function
Offline Zero2Cool  
#57 Posted : Sunday, September 20, 2009 9:17:11 PM(UTC)
Rank: Premier Member

Yahoo! NCAA March Madness - Gold: 2015Yahoo! Fantasy Football - Gold: 2009FleaFlicker Fantasy Football - Silver: 2010Yahoo! NCAA March Madness - Silver: 2011FleaFlicker Fantasy Football - Bronze: 2016ESPN NCAA March Madness - Bronze: 2010Yahoo! NCAA March Madness - Bronze: 2013

United States
Joined: 10/13/2006(UTC)
Location: Green Bay, WI
Applause Given: 2,502
Applause Received: 4,047
I don't know if I have a case of the stupids or what, but that doesn't make much sense. I'm guessing the function will return a value of false if not all games are selected?
Offline dhpackr  
#58 Posted : Sunday, September 20, 2009 9:18:44 PM(UTC)
Rank: Registered

Joined: 12/12/2007(UTC)
Applause Given: 36
Applause Received: 36
" said: Go to Quoted Post
I don't know if I have a case of the stupids or what, but that doesn't make much sense. I'm guessing the function will return a value of false if not all games are selected?


yes and spit that error. but that is just code for two buttons, you need to add code for all 16
Offline Zero2Cool  
#59 Posted : Sunday, September 20, 2009 9:25:24 PM(UTC)
Rank: Premier Member

Yahoo! NCAA March Madness - Gold: 2015Yahoo! Fantasy Football - Gold: 2009FleaFlicker Fantasy Football - Silver: 2010Yahoo! NCAA March Madness - Silver: 2011FleaFlicker Fantasy Football - Bronze: 2016ESPN NCAA March Madness - Bronze: 2010Yahoo! NCAA March Madness - Bronze: 2013

United States
Joined: 10/13/2006(UTC)
Location: Green Bay, WI
Applause Given: 2,502
Applause Received: 4,047
" said: Go to Quoted Post
" said: Go to Quoted Post
I don't know if I have a case of the stupids or what, but that doesn't make much sense. I'm guessing the function will return a value of false if not all games are selected?


yes and spit that error. but that is just code for two buttons, you need to add code for all 16


I'll play around with it a little bit and see what happens.

" said: Go to Quoted Post
now there is no code in that file u sent to connect to db or retrieve data from db and display on form.

that is not a dynamic database driven form


I didn't think it was wise to put the database connection information in every thread so I have it in a separate file and am using a function to call it.
Offline Zero2Cool  
#60 Posted : Sunday, September 20, 2009 10:32:37 PM(UTC)
Rank: Premier Member

Yahoo! NCAA March Madness - Gold: 2015Yahoo! Fantasy Football - Gold: 2009FleaFlicker Fantasy Football - Silver: 2010Yahoo! NCAA March Madness - Silver: 2011FleaFlicker Fantasy Football - Bronze: 2016ESPN NCAA March Madness - Bronze: 2010Yahoo! NCAA March Madness - Bronze: 2013

United States
Joined: 10/13/2006(UTC)
Location: Green Bay, WI
Applause Given: 2,502
Applause Received: 4,047
[php]
function check_pick() {
//if (Auth::isAdmin())

//return true;
this chunck of code allows admin to
bypass validation remove the slashes to make it so admin would have to check all boxes


$is_valid = true;
if($this->rdoGame01=="" or $this->rdoGame02=="" ){
$is_valid=false;
$this->add_error('Make a selection!');
}
return $is_valid;

}
[/php]
Rss Feed 
Users browsing this topic
Guest
10 Pages«<45678>»
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error


Fan Shout
uffda udfa (21m) : This is the 6th straight game we've faced someone for the 2nd time. We learn.
uffda udfa (22m) : Aaron: I like our role. I like our chances. (said he relishes being an underdog)
uffda udfa (28m) : Aaron alludes to fake crowd noise at Georgia Dome for Sunday.
uffda udfa (1h) : So, to recap. Losing streak "just the way it is", winning streak "astronomical feat". #Balanced
uffda udfa (1h) : Ironically, he called the turn around "astronomical" not just the way it is in the NFL. #Don'tMissTheIrony
uffda udfa (1h) : Ted tells Demovsky the Packers weren't underachieving when 4-6. Just the way it is in the NFL????
Zero2Cool (5h) : Only time I recall getting annoyed is when they beat a single topic over and over and over.
Pack93z (5h) : Most yes... Heller seems to get it more so... diversity in his coverage... but seemingly can highlight the pressing issues properly.
Zero2Cool (5h) : I'm kind of in the boat that they all are babblying boonies.
Pack93z (5h) : God bless it... Bill Michaels can be a stubborn SOB at times... love his Packers coverage, still think he is a buffoon at times.
Zero2Cool (6h) : Jordy Nelson Named PFWA Comeback Player of the Year
Zero2Cool (7h) : Carter is predicitng the end is in ATL for Packers.
Porforis (7h) : Or I could just completely miss the part where that was Cris Carter.
Porforis (7h) : Careful there. Don't you want to predict a Packers loss just in case?
Zero2Cool (8h) : @criscarter80 :Every fairy tale comes to an end, and this is where the magic carpet ride stops in the ATL.
Zero2Cool (8h) : McCarthy: "JC Tretter actually had surgery Tuesday. He won't be available this week"
Zero2Cool (9h) : Crosby is fine now. Full Participant in practice Thursday
Porforis (9h) : What I'm more worried about at this point is WR injuries and Crosby being sick. Who'd be the backup if Crosby can't go?
Zero2Cool (9h) : We do have hope. Our secondary has improved. Also, he had to throw 80% to get 1 point up. That won't happen again.
Zero2Cool (10h) : I like to tease sometimes.
uffda udfa (10h) : Only 80%? :). We lost by one given that stat? Wish we had hope of tightening up.
uffda udfa (10h) : Z, u should tell everyone who Quintorris is. Quintorris Lopez Jones, better known as Julio.
Zero2Cool (10h) : Matt Ryan completed 80% of his passes against Packers in October.
uffda udfa (10h) : McGinn goes full on attack mode dismissing the notion of "Packers people". Harsh.
uffda udfa (10h) : McGinn says John Dorsey likely to be next Packers GM.
Zero2Cool (13h) : Boom! Davante Adams says last year's ankle injury "more difficult to deal with'
uffda udfa (16h) : Packers brass potentially leaving? Not worthy of discussing. Pressure Cooker? Never enough talk about them.
Zero2Cool (21h) : Put Quintorris in a pressure cooker.
uffda udfa (19-Jan) : Back to football: Julio says he's going to play Sunday. Did NOT say he wouldn't be limited in the game.
uffda udfa (19-Jan) : Anyone ever used their dishwasher to make their Thanksgiving turkey?
uffda udfa (19-Jan) : Favorite Ronnie Milsap song? Smokey Mountain Rain or Any Day Now?
uffda udfa (19-Jan) : Favorite GM candidate... Wolf or Gutekunst?
uffda udfa (19-Jan) : I'd rather sit them than play them too compromised.
uffda udfa (19-Jan) : Yeah, Z. More pressure cooker talk and smoked turkeys.
Zero2Cool (19-Jan) : If this were a regular-season game, Nelson, Adams and Allison probably would not play, MM says.
Please sign in to use Fan Shout

2016 Packers Schedule
Sunday, Sep 11 @ 12:00 PM
at Jaguars
Sunday, Sep 18 @ 7:30 PM
at Vikings
Sunday, Sep 25 @ 12:00 PM
LIONS
Sunday, Oct 2 @ 12:00 AM
BYE
Sunday, Oct 9 @ 7:30 PM
GIANTS
Sunday, Oct 16 @ 3:25 PM
COWBOYS
Thursday, Oct 20 @ 7:25 PM
BEARS
Sunday, Oct 30 @ 3:25 PM
at Falcons
Sunday, Nov 6 @ 3:25 PM
COLTS
Sunday, Nov 13 @ 12:00 PM
at Titans
Sunday, Nov 20 @ 7:30 PM
at Redskins
Monday, Nov 28 @ 7:30 PM
at Eagles
Sunday, Dec 4 @ 12:00 PM
TEXANS
Sunday, Dec 11 @ 3:25 PM
SEAHAWKS
Sunday, Dec 18 @ 12:00 PM
at Bears
Saturday, Dec 24 @ 12:00 PM
VIKINGS
Sunday, Jan 1 @ 7:30 PM
at Lions

Think About It
Think About It

Recent Topics
19m / Green Bay Packers Talk / uffda udfa

42m / Green Bay Packers Talk / uffda udfa

2h / Green Bay Packers Talk / uffda udfa

2h / Green Bay Packers Talk / sschind

2h / Green Bay Packers Talk / sschind

3h / Green Bay Packers Talk / DoddPower

3h / Green Bay Packers Talk / DoddPower

4h / Green Bay Packers Talk / Mucky Tundra

8h / Green Bay Packers Talk / wpr

10h / Green Bay Packers Talk / DarkaneRules

10h / Green Bay Packers Talk / uffda udfa

10h / Fantasy Sports Talk / SINCITYCHEEZE

13h / Green Bay Packers Talk / Zero2Cool

18h / Green Bay Packers Talk / Rick12

20h / Green Bay Packers Talk / Zero2Cool


Packers Headlines