dhpackr
15 years ago

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 :)

"Zero2Cool" wrote:



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
<input name='rdoGame01' type='radio' value='Titans' />Tenneesee Titans
<input name='rdoGame01' type='radio' value='Steelers'/>Pittsburgh

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

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

<input type="radio" name="rdoGame01" value="0" class="textbox"<?if($rdoGame01=="0"){echo " checked ";}?>> Steelers
?>
So if you meet me Have some courtesy, Have some sympathy, and some taste
Use all your well-learned politesse, Or I'll lay your soul to waste
Zero2Cool
15 years ago

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 :)

"dhpackr" wrote:



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?

"Zero2Cool" wrote:



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. šŸ™‚
UserPostedImage
dhpackr
15 years ago

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 :)

"Zero2Cool" wrote:



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?

"dhpackr" wrote:



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

"Zero2Cool" wrote:



look at post above this one^^^^^^^^^^^^^^^^^^^^^^^^^^ ^
So if you meet me Have some courtesy, Have some sympathy, and some taste
Use all your well-learned politesse, Or I'll lay your soul to waste
dhpackr
15 years ago
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
So if you meet me Have some courtesy, Have some sympathy, and some taste
Use all your well-learned politesse, Or I'll lay your soul to waste
Zero2Cool
15 years ago
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
UserPostedImage
dhpackr
15 years ago
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
So if you meet me Have some courtesy, Have some sympathy, and some taste
Use all your well-learned politesse, Or I'll lay your soul to waste
Zero2Cool
15 years ago
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?
UserPostedImage
dhpackr
15 years ago

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?

"Zero2Cool" wrote:



yes and spit that error. but that is just code for two buttons, you need to add code for all 16
So if you meet me Have some courtesy, Have some sympathy, and some taste
Use all your well-learned politesse, Or I'll lay your soul to waste
Zero2Cool
15 years ago

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?

"dhpackr" wrote:



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

"Zero2Cool" wrote:



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

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

"dhpackr" wrote:



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.
UserPostedImage
Zero2Cool
15 years ago
[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]
UserPostedImage
Fan Shout
Zero2Cool (33m) : The menu you expanded to log in, it's the first icon under "PackersHome" .. maybe i should add text to it
dfosterf (39m) : Feelin' pfowish can't find the sun. No big deal, will drag a laptop out when the time comes
Zero2Cool (55m) : if you're on mobile, open the menu and its the "sun" icon
dfosterf (56m) : Can't find the toggle, lol
dfosterf (57m) : I can find that the Microsoft lady rep for Titletown Tech is the philanthropy boss for the entire Microsoft corporation, but. .
Zero2Cool (1h) : There's a toggle for light/dark theme. Super easy.
dfosterf (1h) : The white background beta was hard to read, especially the quotes
dfosterf (1h) : Hopefully the color scheme remains the same
dfosterf (1h) : *Friday*
dfosterf (1h) : 100 million would be 539 million as of Fridsy
dfosterf (1h) : Heck, they could have taken a hundred milliion and invested in DAVE inc. last year (semi random, humor, but real)
dfosterf (2h) : Beer brat and ticket is where the money comes from
dfosterf (2h) : The 40th is Titletown Tech itself. This is a pet project of both Ed Policy and Mark Murphy
Zero2Cool (2h) : New site coming along nicely. The editor is better than what we have here. Oh yeah!
dfosterf (2h) : No profit that I know of. 0 for 40
dfosterf (2h) : The woke reference has to do with the makeup and oftentimes objectives of the companies they invested in
packerfanoutwest (2h) : beer and brats woke? say whom?
beast (2h) : I don't want to get into politics, but how is, beers and brats considered to be "woke"? Food is food...
beast (2h) : That being said, I'm not saying all 100% should be that way, but not surprised if majority are Wisconsin based
beast (2h) : And if everyone has heard of them, then it it probably has less growth potential and less community based
beast (2h) : Well isn't the investing person supposed to invest the money?
dfosterf (3h) : I swear if I were to discover that one of them has invented a virtue signalling transmitter I will not be surprised, lol
dfosterf (3h) : 39 companies so far that I bet no one has ever heard of.
dfosterf (3h) : -Not saying woke, but should- borderline philanthopist venture capital excercise
dfosterf (3h) : Well for one, they are pouring resources into Title Town Tech. Investing beer, brat, hot dog, ticket money into what is pretty much...
beast (9h) : Wow, 95% drop in investment revenue? Would be interesting to hear the details of why...
dfosterf (25-Jul) : It's my one day deal complaint dept. on shareholder meeting day
dfosterf (25-Jul) : Probably a homer access credential intimidation kinda thing
dfosterf (25-Jul) : Meathead "journalists" skip this, concentrating on operational revenue when convenient. They switch when net revenue is more favorable.
dfosterf (25-Jul) : Resulting in an actual drop of net revenue of 12.5%. She is from Minnesota. Just sayin'
dfosterf (25-Jul) : Any plans to hold Maureen Smith (CFO) accountable for a 95% drop in investment revenue?
Mucky Tundra (25-Jul) : In your face, HBO!
Mucky Tundra (25-Jul) : @ByRyanWood Mark Murphy: ā€œA great source of pride of mine is that we were never on Hard Knocks.ā€
Mucky Tundra (25-Jul) : *years
Mucky Tundra (25-Jul) : @mattschneidman Mark Murphy says he anticipates ā€œmany Packers gamesā€ being played in Germany, Ireland and/or the U.K. over the next 5-10 yea
dfosterf (25-Jul) : *cafeteria* I have hit my head also, so I sympathize
dfosterf (25-Jul) : Possibly hit his head leaning into the glass protecting the food in the cafateria
dfosterf (25-Jul) : Maybe a low flying drone
dfosterf (25-Jul) : Did Savion Williams run into a goalpost or something?
Mucky Tundra (25-Jul) : also, no bueno when a guy starts getting concussions right off the bat in his career
Zero2Cool (25-Jul) : Concussion is worse. Banks probably vet off day via back booboo claim
Mucky Tundra (25-Jul) : @AndyHermanNFL Jordy Nelson out at camp today. No word if he’s in play for one of the two open roster spots ; )
dfosterf (25-Jul) : Is that better or worse than Banks bad back?
Zero2Cool (25-Jul) : Savion concussion ... not good.
packerfanoutwest (24-Jul) : Aaron Rodgers’s first pass of first team period was picked off
Mucky Tundra (24-Jul) : tbh I didn't hear of his passing
Zero2Cool (24-Jul) : Cosby Show. Malcom Jamal Warner I think is real name
Mucky Tundra (24-Jul) : I was thinking of Ozzy and Hulk
Mucky Tundra (24-Jul) : Who's Theo?
Zero2Cool (24-Jul) : How is Theo alliteration?
Please sign in to use Fan Shout
2025 Packers Schedule
Sunday, Sep 7 @ 3:25 PM
LIONS
Thursday, Sep 11 @ 7:15 PM
COMMANDERS
Sunday, Sep 21 @ 12:00 PM
Browns
Sunday, Sep 28 @ 7:20 PM
Cowboys
Sunday, Oct 12 @ 3:25 PM
BENGALS
Sunday, Oct 19 @ 3:25 PM
Cardinals
Sunday, Oct 26 @ 7:20 PM
Steelers
Sunday, Nov 2 @ 12:00 PM
PANTHERS
Monday, Nov 10 @ 7:15 PM
EAGLES
Sunday, Nov 16 @ 12:00 PM
Giants
Sunday, Nov 23 @ 12:00 PM
VIKINGS
Thursday, Nov 27 @ 12:00 PM
Lions
Sunday, Dec 7 @ 12:00 PM
BEARS
Sunday, Dec 14 @ 3:25 PM
Broncos
Friday, Dec 19 @ 11:00 PM
Bears
Friday, Dec 26 @ 11:00 PM
RAVENS
Saturday, Jan 3 @ 11:00 PM
Vikings
Recent Topics
1h / Feedback, Suggestions and Issues / Zero2Cool

2h / Green Bay Packers Talk / beast

9h / Green Bay Packers Talk / beast

25-Jul / Around The NFL / Mucky Tundra

25-Jul / Green Bay Packers Talk / Mucky Tundra

25-Jul / Green Bay Packers Talk / TheKanataThrilla

25-Jul / Green Bay Packers Talk / dfosterf

25-Jul / Around The NFL / beast

24-Jul / Green Bay Packers Talk / Martha Careful

24-Jul / Around The NFL / beast

24-Jul / Green Bay Packers Talk / Mucky Tundra

23-Jul / Green Bay Packers Talk / beast

23-Jul / Green Bay Packers Talk / wpr

22-Jul / Random Babble / Zero2Cool

22-Jul / Green Bay Packers Talk / Zero2Cool

Headlines
Copyright Ā© 2006 - 2025 PackersHome.comā„¢. All Rights Reserved.