Hi guys
Just to start of, i'm a total noob to html.
I wanna make a message board/news board where i can post form my admin panel. They're to different documents one is a php and the other is html. I wanna know how to get something i type in the admin.php document over to a specific place in index.html how do i do that?
The code so far goes:
Index.html
[PHP]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">
function size() {
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
</script>
<style type="text/css">
#apDiv1 {
position:relative;
margin:auto;
width:780px;
height:184px;
z-index:1;
left: auto;
right:auto;
background-image: url(Images/banner.png);
top: 0px;
}
</style>
</head
><body>
<div align="center" id="apDiv1">
<p align="right"><a href="login.html">Login</a>
</p>
<p> </p>
<p> </p>
<p> </p>
</div>
<p> </p>
<form id="form1" name="form1" method="post" action="">
<label for="textarea"></label>
<div align="center">
<p>
<textarea name="textarea" cols="95" rows="14" readonly="readonly" id="textarea"></textarea>
</p>
</div>
</form>
<p> </p>
<table width="780" height="542" border="1" align="center">
<tr>
<th width="511" height="244" scope="col"> </th>
<th width="253" scope="col"> </th>
</tr>
</table>
<p> </p>
</body>
</html>[/PHP]admin.php
[PHP]<html>
<head>
<title>My Page</title>
</head>
<body>
<form name="Index" action="Index.html" method="POST">
<div align="center">
<br>
<label for="textarea"></label>
<textarea name="textarea" id="textarea" cols="45" rows="5"></textarea>
<br>
<br><input type="submit" value="Submit"><br>
</div>
</form>
</body>
</html>[/PHP]
Don't use Dreamweaver's design view
[QUOTE=turb_;22414425]Don't use Dreamweaver's design view[/QUOTE]
Why not?
Its generally awful and generates stupid amounts of unneeded useless code.
[QUOTE=Sharpshooter;22414629]Its generally awful and generates stupid amounts of unneeded useless code.[/QUOTE]
Thanks!
But could someone answer my question please?
[QUOTE=chill_dude;22414712]Thanks!
But could someone answer my question please?[/QUOTE]
What's the question? :sigh:
[QUOTE=sseug;22414984]What's the question? :sigh:[/QUOTE]
I wanna know how to get something i type in the admin.php document over to a specific place in index.html how do i do that?
Sorry i forgot that! Damn im stupid...
You have a MySQL database that stores your posts.
[QUOTE=chill_dude;22415067]I wanna know how to get something i type in the admin.php document over to a specific place in index.html how do i do that?
Sorry i forgot that! Damn im stupid...[/QUOTE]
I usually help people, as people in this forum will certainly confirm, but seriously, you need to get your shit sorted out:
[list]
[*] type properly
[*] don't use Dreamweaver (you can use it for PHP but only the code view)
[*] learn proper HTML
[*] learn proper PHP
[*] find some tutorials
[/list]
I would normally suggest nettuts but you'd most likely get lost, try reading a PHP tutorial or something. [url]http://www.w3schools.com/php/php_intro.asp[/url]
Sorry, you need to Log In to post a reply to this thread.