-1

i want to combine

rs.getString("PresentationDay")
rs.getString("PresentationStart")
rs.getString("PresentationEnd")

into one checkbox so these three will enter the database in one column.

this is my current code

 <input type="checkbox" name="availableTime" value="<%=rs.getString("PresentationDay")AND rs.getString("PresentationStart") AND rs.getString("PresentationEnd") %>">

but im getting error. How can i do this? Thank you in advance!

Mong2203
  • 71
  • 1
  • 12

1 Answers1

1

You can use + operator to concatenate the strings, e.g.:

<input type="checkbox" name="availableTime" value="<%=rs.getString("PresentationDay") + rs.getString("PresentationStart") + rs.getString("PresentationEnd") %>">
Darshan Mehta
  • 30,102
  • 11
  • 68
  • 102