very good question
lets start from fundamental where did you drive that m1 m2=-1
lets start proof
lets y=m1x+c1,y=m2x+c2 are two lines
to find angle between them say theta
tan theta =tan(theta1-theta2)= (tan (theta1) -tan (theta2))/(1+tan (theta1)tan (theta2))
for lines to be perpendiculars
tan theta should be infinity
means (1+tan (theta1)tan (theta2)) =0
1+m1m2=0
proved
now coming back to your question
y = c and x =b are two lines
m1 = 0 and m2 = infinity in the very first equation you wil get the result