o.o; was i stupid .... you are correct (= i placed $name between my element tags and it worked perfectly :P 1 more problem though
When a user submits this form, i want him to be taken to 'mail.php' and i tried redirects and stuff but none of them seem to work. How can i re-direct once a user hits the Submit button?
[HTML] rawoutput("<form action='runmodule.php?module=mailnotepad&op=write' method='POST'>");
output("`)TESTING `0");
rawoutput("<br><textarea name='note1' rows='7' cols='60' class='input'> $note1 </textarea>");
rawoutput("<input type='submit' class='button' value='".translate_inline("Submit!")."'></form>");
rawoutput("</form>");
[/HTML]
you could try this, but this is done in PHP.
[PHP]
<?php
// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); //this will change to your specs.
// redirect to success page
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=thankscontact.htm\">";//this will change to your specs.
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
}
?>
[/PHP]
nomad