The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Radio Button not re-filling - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Radio Button not re-filling (/showthread.php?tid=1288)



Radio Button not re-filling - alexh - May 10th, 2011

Anyone see why this is the only thing that's not re-filling?

PHP Code:
<input name="Owner" type="radio" value="City_of_City_Name" <?php if (@$fields["Owner"] == "City_of_City_Name") echo "checked"?>" /> City of City Name<br />
<input name="Owner" type="radio" value="PGE" <?php if (@$fields["Owner"] == "PGE") echo "checked"?>" /> PGE<br />
<input name="Owner" type="radio" value="USPS" <?php if (@$fields["Owner"] == "USPS") echo "checked"?>" /> USPS<br />
<input name="Owner" type="radio" value="other" <?php if (@$fields["Owner"] == "Other") echo "checked"?>" /> Other, Including Private Property (Enter Below)<br /><br /> 

Figured it out...

I took the quote out that was after ?>...so it looks like this:

PHP Code:
<input name="Owner" type="radio" value="City_of_City_Name" <?php if (@$fields["Owner"] == "City_of_City_Name") echo "checked"?> /> City of City Name<br />
<input name="Owner" type="radio" value="PGE" <?php if (@$fields["Owner"] == "PGE") echo "checked"?> /> PGE<br />
<input name="Owner" type="radio" value="USPS" <?php if (@$fields["Owner"] == "USPS") echo "checked"?> /> USPS<br />
<input name="Owner" type="radio" value="other" <?php if (@$fields["Owner"] == "Other") echo "checked"?> /> Other, Including Private Property (Enter Below)<br /><br /> 

Ben - Maybe you can update the tutorial. :-)

Thanks!
Alex

(May 10th, 2011, 1:00 PM)alexh Wrote: Anyone see why this is the only thing that's not re-filling?

PHP Code:
<input name="Owner" type="radio" value="City_of_City_Name" <?php if (@$fields["Owner"] == "City_of_City_Name") echo "checked"?>" /> City of City Name<br />
<input name="Owner" type="radio" value="PGE" <?php if (@$fields["Owner"] == "PGE") echo "checked"?>" /> PGE<br />
<input name="Owner" type="radio" value="USPS" <?php if (@$fields["Owner"] == "USPS") echo "checked"?>" /> USPS<br />
<input name="Owner" type="radio" value="other" <?php if (@$fields["Owner"] == "Other") echo "checked"?>" /> Other, Including Private Property (Enter Below)<br /><br /> 




RE: Radio Button not re-filling - Ben - May 10th, 2011

Thanks Alex! Will do. Big Grin

(And sorry!!!)

- Ben