Click to See Complete Forum and Search --> : NMS FormMail - return HTML problem


IT Spider
11-04-2003, 05:04 AM
Anyone know what I should be doing to get the 'realname' and 'email' inputs listed in the HTML that is presented to the user on submission of the form?

This doesn't seem to do it...

<input name="realname" type="text" size="30" tabindex="0">
<input name="email" type="text" size="30" tabindex="1">
<input type="hidden" name="print_config" value="realname,email">
<input type="hidden" name="print_blank_fields" value="1">

Thanks

Neil

(any advice on improving the appearanve of the return HTML page also gratefully received!)

smithtay
11-04-2003, 08:08 AM
Could you show us the cgi page? That would help with understanding why you need to have a hidden box with redundant data.

If it actually is needed you could use javascript.




<html>
<head>
<title>...</title>

<script>
function chng() {
f1hidden.innerHTML = "<input type='hidden' name='value1' value='" + myform.field1.value + "'>"
f2hidden.innerHTML = "<input type='hidden' name='value2' value='" + myform.field2.value + "'>"
}

rpt = setInterval("chng()",100)

</script>

</head>
<body>
<form name="myform" method="post" action="mycgi.cgi">
<input name="field1" type="text">
<br>
<input name="field2" type="text">
<span ID="f1hidden"></span>
<span ID="f2hidden"></span>
<input name="sbbttn" value="go!" type="submit">
</form>
</body>
</html>

I think that should do it, but post your cgi page first, to see if this is actually needed.

IT Spider
11-04-2003, 09:32 AM
Sorry, I didn't make myself clear - NMS FormMail is a well used, downloadable script (www.scriptarchive.com) for emailing form contents securely.

It is the use of this that I refered to - my apologies if this is the wrong place to ask about that form??

Thanks ever so much for trying!

(but if anyone else does use it? As I'm posting here already!)

Cheers

Neil