Sorry
Here is everything I have of code to insert into the DB
[PHP]<?php
if (!function_exis ts("GetSQLValue String")) {
function GetSQLValueStri ng($theValue, $theType, $theDefinedValu e = "", $theNotDefinedV alue = "")
{
$theValue = get_magic_quote s_gpc() ? stripslashes($t heValue) : $theValue;
$theValue = function_exists ("mysql_real_es cape_string")...
User Profile
Collapse
-
This is the form code
[HTML]<form action="<?php echo $editFormAction ; ?>" method="POST" name="form2" id="form2">
<table align="center">
<tr valign="baselin e">
<td colspan="2" align="center" valign="middle" nowrap="nowrap" ><label>Announc ements</label></td>
...Leave a comment:
-
An editor like the one used here would be great but here is my problem. I do not have access to the server, In order to change or setup a table in the database, I have to go through the server administrator. Does TinyMCE require installation on a server?
Back to using resouces, where would I put in the nl2br tag to format the text before it goes to the database?...Leave a comment:
-
Yes. The data is going into a database. I did create a solution that seems to work although I do not know if it is the best way. My user would put in his text with whatever line breaks he wants and submit it to the database. I have a seperate page to display the data and it has this code:
[PHP]<?php echo $row_Recordset1['Important_Even ts']; ?>[/PHP]
and adding nl2br to it like this:
[PHP]<?php echo nl2br($row_Reco rdset1['Important_Even ts']);...Leave a comment:
-
Formating a text area
That makes sense.
Now where and how to put it in the code? Does it go on the form page or the result page (the page I use to display the text)?
On the form page, I have the following:
Here is a part of php code that Dreamweaver put in for stripslashes and htmlentities.
[PHP]
if (!function_exis ts("GetSQLValue String")) {
function...Leave a comment:
-
Formating a text area
I have a form with only one element (a text area created in Dreamweaver.) I want a user to input text in the form in any way he wants(such as paragraphs) and have it output pretty much the same way it was entered except on a different web page. I read about the function nl2br() but I do not understand how it works. I don't need anything as sophisticated as this message window I used to type in the message, I just want my user to be able to type in... -
Using textarea form to post a message
I have a form with only one element (a text area created in Dreamweaver.) I want a user to input text in the form in any way he wants(such as paragraphs) and have it output pretty much the same way it was entered except on a different web page. I read about the function nl2br() but I do not understand how it works. I don't need anything as sophisticated as this message window I used to type in the message, I just want my user to be able to type... -
Setting up a table
I need to build a table and I am looking for the most efficient way to do it. The data I need to collect will come from multiple users all using the same input form. I need to extract the data to different html pages (about 50) but only the data that corresponds to the user of that particular html page. The fields I need are club_name and announcement. I really only need the user to input the club_name once since I don't want it to be redundant,... -
Advice on a table
I want to create a table to which 3 different users will post data. The data is just message/news data and each user will only need to post data to one field. So far I have a table with the fields:
ID, Message, Daily_Announcem ent, and News
I want to extract the data posted into each field and display it on a corresponding html page. I have the following code to extract and display the data but it displays everything input... -
-
Posting to a field in a table
I am pretty new at php but I think I have an understanding of its logic.
I have a table in a database called Announcements. One of the fields is called Principal_Messa ge. The other fields in the table are Important_Event s and Daily_Announcem ents. I just want to post data to Principal_Messa ge using a form and I want to post to the other fields using other forms. I have created the form and a review page to review the data for the field... -
I really don't have any code, I have created an html document like this
[HTML]
<body>
<form id="scholbullet in" name="schbullet in" method="post" action="process .php">
<label>Paste information here
<textarea name="bulletin" id="textarea" cols="45" rows="5"></textarea>
</label>...Leave a comment:
-
help creating a form
I know html and I work with cs3. I am just learning php and I think I understand its basic syntax. I work for a public school without a programming department. We have a website that is hosted offsite and we have no admin rights to the server. I can upload files to the server through the ftp in CS3 but that is the extent of the rights I have. I cannot get to the root of the server, just the folder designated for my school.The server is Windows...
No activity results to display
Show More
Leave a comment: