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 (4h) : Maybe wicked wind chill made it worse?
Mucky Tundra (11h) : And then he signs with Cleveland in the offseason
Mucky Tundra (11h) : @SharpFootball WR Diontae Johnson just admitted he refused to enter a game in 41° weather last year in Baltimore because he felt “ice cold”
Zero2Cool (24-Jun) : Yawn. Rodgers says he is "pretty sure" this be final season.
Zero2Cool (23-Jun) : PFT claims Packers are having extension talks with Zach Tom, Quay Walker.
Mucky Tundra (20-Jun) : GB-Minnesota 2004 Wild Card game popped up on my YouTube page....UGH
beast (20-Jun) : Hmm 🤔 re-signing Walker before Tom? Sounds highly questionable to me.
Mucky Tundra (19-Jun) : One person on Twitter=cannon law
Zero2Cool (19-Jun) : Well, to ONE person on Tweeter
Zero2Cool (19-Jun) : According to Tweeter
Zero2Cool (19-Jun) : Packers are working on extension for LT Walker they hope to have done before camp
dfosterf (18-Jun) : E4B landed at Andrews last night
dfosterf (18-Jun) : 101 in a 60
dfosterf (18-Jun) : FAFO
Zero2Cool (18-Jun) : one year $4m with incentives to make it up to $6m
dfosterf (18-Jun) : Or Lions
dfosterf (18-Jun) : Beats the hell out of a Vikings signing
Zero2Cool (18-Jun) : Baltimore Ravens now have signed former Packers CB Jaire Alexander.
dfosterf (14-Jun) : TWO magnificent strikes for touchdowns. Lose the pennstate semigeezer non nfl backup
dfosterf (14-Jun) : There was minicamp Thursday. My man Taylor Engersma threw
dfosterf (11-Jun) : There will be a mini camp practice Thursday.
Zero2Cool (11-Jun) : He's been sporting a ring for a while now. It's probably Madonna.
Martha Careful (10-Jun) : We only do the tea before whoopee, it relaxes me.
wpr (10-Jun) : That's awesome Martha.
Mucky Tundra (10-Jun) : How's the ayahuasca tea he makes, Martha?
Martha Careful (10-Jun) : Turns out he like older women
Martha Careful (10-Jun) : I wasn't supposed to say anything, but yes the word is out and we are happy 😂😂😂
Mucky Tundra (10-Jun) : I might be late on this but Aaron Rodgers is now married
Mucky Tundra (10-Jun) : Well he can always ask his brother for pointers
Zero2Cool (10-Jun) : Bo Melton taking some reps at CB as well as WR
Zero2Cool (10-Jun) : key transactions coming today at 3pm that will consume more cap in 2025
Zero2Cool (9-Jun) : Jaire played in just 34 of a possible 68 games since the start of the 2021 season
Zero2Cool (9-Jun) : reported, but not expected to practice
Zero2Cool (9-Jun) : Jenkins has REPORTED for mandatory camp
Zero2Cool (9-Jun) : I really thought he'd play for Packers.
buckeyepackfan (9-Jun) : Packers releasing Jaire Alexander.
Mucky Tundra (8-Jun) : (Context: he wants his defense to create turnovers)
Mucky Tundra (8-Jun) : Giants DC Shane Bowen tells players to “be a damn pirate."
dfosterf (6-Jun) : Semper fi !
Cheesey (6-Jun) : This is why I have so much respect for those that have gone through battles
Cheesey (6-Jun) : I can't even imagine what that would have been like
wpr (6-Jun) : "Come on, you sons of bitches. Do you want to live forever?"
wpr (6-Jun) : Facing a line of machine guns 2 time medal of Honor recipient, First Sergeant Dan Daly told his men,
wpr (6-Jun) : Another detachment went into the Belleau Wood.
wpr (6-Jun) : On the 6th the Marines took Hill 142 but suffered terrible losses.
wpr (6-Jun) : It’s time to remember dfoster’s Marine brothers in Belleau Wood. The battle went on from June 1-26. Nearly 10,000 casualties.
packerfanoutwest (6-Jun) : Nick Collins and Morgan Burnett have signed with the PACK
packerfanoutwest (6-Jun) : he won't be wearing #12, maybe he will wear number two
packerfanoutwest (6-Jun) : He will fail this season, should have retired
Mucky Tundra (5-Jun) : Thus the cycle of Hall of Fame Packer QBs going to the Jets and then the Vikings is broken
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
8h / Around The NFL / Martha Careful

23-Jun / Green Bay Packers Talk / Mucky Tundra

20-Jun / Green Bay Packers Talk / wpr

20-Jun / Green Bay Packers Talk / beast

20-Jun / Green Bay Packers Talk / beast

18-Jun / Random Babble / Zero2Cool

16-Jun / Green Bay Packers Talk / dfosterf

15-Jun / Random Babble / Martha Careful

14-Jun / Around The NFL / beast

14-Jun / Community Welcome! / dfosterf

13-Jun / Green Bay Packers Talk / dfosterf

13-Jun / Green Bay Packers Talk / Adam

12-Jun / Random Babble / Martha Careful

12-Jun / Green Bay Packers Talk / Zero2Cool

12-Jun / Green Bay Packers Talk / beast

Headlines
Copyright © 2006 - 2025 PackersHome.com™. All Rights Reserved.