0

This code is not display data and not show any error.so reply me what is error.

<html>
<head>
<title>insert new post</title>
</head>
<body>
<form method="post" action="insert_post.php" enctype="multipart/form-data">
<table align="center" border="10" width="600">
<tr>
<td align="center" colspan="5" bgcolor="yellow">
<h1>insert new post here</h1></td>
</tr>
<tr>
<td align="right">post title</td>
<td><input type="text" name="title" size="40"></td>
</tr>
<tr>
<td align="right">post auther</td>
<td><input type="text" name="auther"></td>
</tr>
<tr>
<td align="right">post image</td>
<td><input type="file" name="image"></td>
</tr>
<tr>
<td align="right">post content</td>
<td><textarea name="content" cols="40" rows="20">

3
Contributors
3
Replies
17
Views
2 Years
Discussion Span
Last Post by almostbob
0

Well, there isn't any code in there to display data, so what did you expect? ;) Did you post all of your code though? Seems like some is missing.

0
<html>
<head>
<title>insert new post</title>
</head>
<body>
<form method="post" action="insert_post.php" enctype="multipart/form-data">
<table align="center" border="10" width="600">
<tr>
<td align="center" colspan="5" bgcolor="yellow">
<h1>insert new post here</h1></td>
</tr>
<tr>
<td align="right">post title</td>
<td><input type="text" name="title" size="40"></td>
</tr>
<tr>
<td align="right">post auther</td>
<td><input type="text" name="auther"></td>
</tr>
<tr>
<td align="right">post image</td>
<td><input type="file" name="image"></td>
</tr>
<tr>
<td align="right">post content</td>
<td><textarea name="content" cols="40" rows="20">
0

It is a PEBKAC error,
a conceptual problem

this is an input form,
to display data there must be some code somewhere to
get the data from the DB
parse it to readable html
output to browser

that code would usually be found in the file referred by the action of the form, or in the file that file refers to
not in the input file

input
process
display

can't display in the code shown, as the post is not made yet

If you have copy n pasted the source from a functioning site, you are out of luck, serverside code does not get sent to the browser, only the parsed html

Edited by almostbob

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.