Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hidden field values

Status
Not open for further replies.

altaratz

ISP
Apr 15, 2001
73
US
I've got a cgi that works perfectly as such to print HTML

print "Content-type: text/html\n\n" unless $content_type_printed++;

print qq!
<html><head><title>Coupons</title></head><body bgcolor=#000000>
<table width=100%><td width=20%><center><img src=&quot; width=*><center><font size=+3 face=verdana color=FFFFF>Bestwestern Super Savers</td></font> <td width=20%><center><img src=&quot; <br><br><br><center> $dateString </center><p><hr><p>
<center><table width = $tablewidth border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<form method=&quot;POST&quot; action=&quot; <center><table border=1 cellpadding=0 border=0 cellspacing=1 bgcolor=&quot;#FFFFFF&quot;>
<tr bgcolor=&quot;#FFFFFF&quot;><td bgcolor=&quot;#ececec&quot;>First Name</td><td><input type=&quot;text&quot; name=&quot;firstname&quot; size=&quot;25&quot;></td></tr>
<tr bgcolor=&quot;#FFFFFF&quot;><td bgcolor=&quot;#ececec&quot;>Last Name</td><td><input type=&quot;text&quot; name=&quot;lastname&quot; size=&quot;25&quot;></td></tr>
<tr bgcolor=&quot;#FFFFFF&quot;><td bgcolor=&quot;#ececec&quot;>Number in Party</td><td><input type=&quot;text&quot; name=&quot;numberinparty&quot; size=&quot;25&quot;></td></tr>
<tr bgcolor=&quot;#FFFFFF&quot;><td bgcolor=&quot;#ececec&quot;>Room Number</td><td><input type=&quot;text&quot; name=&quot;roomnumber&quot; size=&quot;25&quot;></td></tr>
<tr bgcolor=&quot;#FFFFFF&quot;><td bgcolor=&quot;#ececec&quot;>Email</td><td><input type=&quot;text&quot; name=&quot;email&quot; size=&quot;25&quot;></td></tr>
<tr bgcolor=&quot;#FFFFFF&quot;><td bgcolor=&quot;#ececec&quot;>Vendor</td><td><input type=&quot;text&quot; name=&quot;cellphone&quot; size=&quot;25&quot;></td></tr>
<tr bgcolor=&quot;#FFFFFF&quot;><td bgcolor=&quot;#ececec&quot; colspan=2 align=&quot;center&quot;><input TYPE=&quot;submit&quot; value=&quot;Submit&quot;>
</td></tr>
</table>
</center>


but when I put in <input type=&quot;hidden&quot; type=&quot;text&quot; name=&quot;something&quot; value=&quot;someone@somewhere.com&quot;>

it comes back as Internal Server Error - will cgis not accept &quot;hidden&quot; values?

Thanks for any responses!
 
Sure it will...... it maybe that you need to escape the @ in the email or some other simple tweak like that.

HTH


keep the rudder amid ship and beware the odd typo
 
<input type=&quot;hidden&quot; type=&quot;text&quot; name=&quot;something&quot; value=&quot;someone@somewhere.com&quot;>

do you mean to declare type twice? that might not make a difference, but you never know. &quot;If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito.&quot;
 
You DEFINITELY need to escape the @ in the email address!
Code:
value=&quot;someone\@somewhere.com&quot;
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top