Click to See Complete Forum and Search --> : Need some help with Textboxes please


Jason0885
11-20-2007, 03:45 PM
Ok, I'm fairly new @ HTML I know the <textbox> command, and the
<form> and creating buttons etc... I have been doing extensive research on this and have been trying to figure it out... I'm not sure
if this is a ASP, PHP, HTML, or Mysql problem, because from everything I've read it requires knowledge of all 4.. I would
however like a html one only..

Okay, Im going to try to describe it in steps from the person viewing the page point of view<br><br>

Step 1.) They open up the home page and click on the schedule link.

Step 2.) They see a text box that is read only, and a edit button, They click edit to come to a password protected website
(i got that working)

Step 3.) the come to another text box that can be typed in and a button that says finish..

Step 4.) they type their message in the text box and click on finish updating the read only one...



My Schedule page is

<html>
<head>
</header>

<body>
<input type="text" name="thebox" value="Your Name">
<br>
<textarea readonly="" name="message">
Please write your message here.
</textarea>
<br>
<br>

<input type="submit" value="Submit">
<form action="process.php" method="post">
Form elements and formatting etc.
</form>

</body>
</html>

And the edit page is

<head>
<title> Edit Schedule </title>
</head>
<BODY
{
color:#cccccc;
background-color:#000000;
font-family:Arial;
}
A:link{color:#cccccc}
A:visited{color:#cccccc}>
<center> <h2> Edit Schedule </h2>
<h4> "Instance/Heroics/Raids" </h4></center>
<Center> <br><form method = "Post" action="edit.php?issue=Edit Schedule">Type Instance here <input type = "text" size="40" maxlength="40" style="background-color:#FFFFCC" name = "desc" value="Raids/Heroics/Instance">&nbsp
<br>
Sign ups:
<br>
<textarea rows="20" cols="60" name = "info" style="background-color:#FFFFFF" >

Please Type in the Instance/date/time In this box

</textarea>
<br>
<br>
<input type="hidden" name="submitted" value="1"><input type="hidden" name="oldIssueName" value="Schedule"><input type = "submit" value = "Finish" name = "finished"></center></form><center><form method ="POST" action="result.php"><input type ="submit" value="Cancel" name ="cancel"></center></form>
</body>
</html>

Hope that helps

Fang
11-21-2007, 02:22 AM
Only step 1 and 3 are possible with html.
step 2. server side scripting
step 4. server side scripting and JavaScript if enabled.

Jason0885
11-21-2007, 05:11 PM
k do you have any ideal on how i would script the server, or what coding language i would use?

Fang
11-22-2007, 02:07 AM
Password protected directory on Apache server: http://perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/#sec12

Which server side language you use is up to you, php (http://www.w3schools.com/php/default.asp) is quite easy.