i hate html

:
GLA45
ok so i'm trying to generate an html page from a perl script, but all input types show up as text boxes. here is the code:


HTML:
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

[b] Payment Method: [/b]


       
          
       Visa 


       
          
         Master Card 


         
          
         Discover 


       
          Check
looks like it says "radio", "submit" and "reset" for type there to me, why does it show up as a text box?
 

Attachments

  • code.webp
    code.webp
    37.8 KB · Views: 697
Why do you have a space after a leading quote?


Change all "[" to "<" and "]" to ">"

Code:
[input type="radio" name="payment" value="V" checked]Visa
[br]]input type="radio" name="payment" value="MC"]MasterCard
[br][input type="radio" name="payment" value="D"]Discover
[br][input type="radio" name="payment" value="C"]Check Card

<table>
<tr>
<td valign="center" align="left">
<input type="radio" name="payment" value="V" checked> Visa
<br><input type="radio" name="payment" value="MC"> MasterCard
<br><input type="radio" name="payment" value="D"> Discover
<br><input type="radio" name="payment" value="C"> Check Card
</td>
</tr>
</table>
 
Last edited:
i have no idea, i copied the basic page from the one my teacher made and he uses leading quotes, but his works
 
jred321 said:
i have no idea, i copied the basic page from the one my teacher made and he uses leading quotes, but his works

His page is wrong. The space after the first quote in

type =" radio"

is what the problem is. It HAS to be "radio", not " radio"


" radio" != "radio"
 
yea, but his shows up right which is weird. to get that code there i just copied and pasted it because what we were working on was another part of the page, which is why it didn't cross my mind
 
your page doesnt work all the way ;) i just tried to order me some popcorn, and it didnt total it or nothing. are you tying this to a db?
 
haha, no it's just tied to another simple perl script. i haven't updated that one yet :) soon you'll be able to order popcorn

the script used to have set options that you could pick, now it reads types of popcorn and prices from a .dat file. real tough :)
 
cool. just wanted to make sure my ridiculous order was going somewhere :)
 

New Threads and Articles

Back