473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Text area value is not passed to php script

I have the following html code:
<html>
<head>
<title> Node Entry</title>
</head>

<body>
<form action="sqlconnect.php" method="post"><table border="5">
<tr> <td><textarea rows=3 cols=70 name="parent_node"> </textarea></td> </tr>
<tr> <td> <input type="text" name="Node" maxlength="207000" size="20700"> <br> </td> </tr>
<tr> <td colspan="20"><input type="submit" value="Save"</td> </tr>
</tabe>
</form>
</body>
</html>

==The content of sqlconnect.php is as follows:

<?php
//phpinfo();

@ $db = mysql_pconnect('localhost', '','');


if (!$db){echo 'Error Could not connect to database';
exit;
}
else
echo 'connected to database';
mysql_select_db('law');
//echo 'law';
$query = 'show databases';
// echo $query;
$result = mysql_query($query);
echo $result;
// $num_results=mysql_num_rows($result);
// echo $num_result;

mysql_select_db (‘law’);
$NODE=$HTTP_POST_VARS['parent_Node'];
$NODE=AddSlashes($NODE);
$cnode=$HTTP_POST_VARS['Node'];
$cnode=AddSlashes($cnode);
$query = "insert into nodes values ('".$NODE."','".$cnode."')";
echo $query;
$result = mysql_query($query);
echo $result;
//if ($result) echo 'inserted' else echo not inserted;

?>

===
After entering some text in to text area, is get nothing echoed from the parent_node. What is the problem??
Any hellp in this matter is appreciated.
May 15 '06 #1
1 4336
Banfa
9,065 Expert Mod 8TB
[html]
<textarea rows=3 cols=70 name="parent_node"> </textarea>
[/html]

[php]
$NODE=$HTTP_POST_VARS['parent_Node'];
[/php]
You have a capitalisation mismatch in the identifier parent_node in the two lines above.
May 15 '06 #2

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

Similar topics

4
by: Dru | last post by:
Hi, I am making a textarea for people to add/modify their text for descriptions products. I want to have buttons (or just text links) with functions that will allow them to bold, italicize, sup,...
4
by: Dan | last post by:
Can anyone offer suggestions on how to do this or if it is possible? I have a form that uses a drop down box and 2 text fields. What I am trying to do is have the value of each text box set by...
5
by: Michael Hill | last post by:
Hi, folks. I am writing a Javascript program that accepts (x, y) data pairs from a text box and then analyzes that data in various ways. This is my first time using text area boxes; in the past,...
10
by: Jake Barnes | last post by:
This weekend I wanted to learn AJAX, so I set up a little toy page where I could experiment. The idea of this page is that you click in one of the boxes to get some controls, at which point you can...
1
by: Kermit Piper | last post by:
Hello, OK, almost there. Here's what I have so far, which handles characters as they're typed in. Could someone please show me how I would loop through all the values that are entered if a block...
4
by: devine | last post by:
Hi All, I am VERY new to Javascript. I have been provided with some code, which will enable me to hide/show a text area and change a submit button dependant on a check box. <!DOCTYPE html...
9
by: Erwin Moller | last post by:
Hi, Can anybody comment on this? In comp.lang.php I advised somebody to skip using: <script language="javascript"> and use: <script type="text/javascript"> And mr. Dunlop gave this response:
4
by: high | last post by:
hi, im new to this platform, i have been creating a web page using MS Front page and i need to insert a text area to give the input and another text area to store that, <form...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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,...

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.