473,466 Members | 1,370 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Form

coolgames
169 New Member
Hey, everything with the code works perfectly but 1 thing.... when a player submits something, the data goes trough but,

the value='$note1' << doesn't seem to work... the form is just blank. Is there anyway i can make the data in $note1 appear?

[HTML]
rawoutput("<textarea name='note1' rows='10' cols='60' class='input' value='$note1'></textarea>");
rawoutput("<input type='submit' class='button' value='".translate_inline("Send")."'></form>");
[/HTML]
Apr 27 '08 #1
4 1036
drhowarddrfine
7,435 Recognized Expert Expert
There is no such attribute as 'value' for <textarea>. To get it to appear, it needs to be between the element tags.
Apr 28 '08 #2
coolgames
169 New Member
There is no such attribute as 'value' for <textarea>. To get it to appear, it needs to be between the element tags.
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]
Apr 28 '08 #3
nomad
664 Recognized Expert Contributor
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
Apr 30 '08 #4
coolgames
169 New Member
Nope, that won't work at all since i am not doing this on a blank php/html page. The info and stuff will be stored in a Database, etc... it's for a core engine and that's how it should be done.

Thanks though

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
Apr 30 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: John | last post by:
Dear all, It been more than 3 days I am trying to debug this program, I interpret it using activePerl and it is giving (perl -wc code_process.pl) no error syntax but when I put it online, change...
5
by: Richard Cornford | last post by:
I am interested in hearing opinions on the semantic meaning of FORM (elements) in HTML. I have to start of apologising because this question arose in a context that is not applicable to the...
4
by: Targa | last post by:
Trying to total some price fields in a form but doesnt work when all the referenced form fields dont exisit. This is for an invoice - pulled prom a database and the form doesnt always contain the...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
19
by: Raposa Velha | last post by:
Hello to all! Does any of you want to comment the approach I implement for instantiating a form? A description and an example follow. Cheers, RV jmclopesAThotmail.com replace the AT with the...
11
by: Jozef | last post by:
I have some old code that I use from the Access 95 Developers handbook. The code works very well, with the exception that it doesn't seem to recognize wide screens, and sizes tab controls so that...
5
by: RAJ | last post by:
hi plz tell me how to know "how window is going to close"... i have to right code for X button of forms... plz telll me thanks bye
6
by: Gary Miller | last post by:
Does anyone know how to detect a modeless form on closing by the form that invoked the modeless form? form.Show();
4
by: Alex Sibilev | last post by:
Hello, I have a really weird problem I've been trying to solve it without any luck for the last couple of hours :( I'm writing a "conference board" application (quite similar to ASP.NET...
5
by: ortaias | last post by:
I have a form which calls up a second form for purposes of data entry. When closing the data entry form and returning to the main form, things don't work as expected. When I return to the main...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.