r/PHPhelp • u/Heavy-Mode2002 • Dec 06 '24
How do I change text color within a table row?
I am editing an input form and output invoice of my car club’s annual meet. I did not create and have never done PHP work – but have experience in multiple programming languages.
The input form, and the output invoice that is emailed to the attendee and our registration coordinator. All to this point is working well.
The registration coordinator wanted a delimited data string that includes all the form fields data, so he could copy and paste into a spreadsheet. The string is built is working.
This last portion of the email is generated as a continuation of the output table. The following are the lines that create the output in question:
//
// meta data
//
$regform .= " <table>\n";
$regform .= " <tr>\n";
$regform .= " End Data>\n";
$regform .= " </tr>\n";
$regform .= " <tr>\n";
$regform .= " <br>$name:$name:$extrabadges:$regtype:$adults:$children:$address:$city:$state:$country:$zipcode:$phone:$email:$drive:$miles:$swapspaces:$outspaces:$year1 $model1,$year2 $model2,$year3 $model3,$year4 $model4:$carcount:$winespaces:$calendarcount :$lunch\n";
$regform .= " </tr>\n";
$regform .= "</table>\n";
//
//So, my question is; is there an argument that I can add to turn the delimited text white so it disappears into the page but the registrar could still highlight and copy?
Thanks for your assistance
PHP newbee
<Kinda solved> I never managed to set this one block of text white, but did generate a unique email to registrar with the requested string. I did play around with CSS but didn't come up with the secret sauce to do what exactly I initially asked for. Thanks all...