Page 1 of 1

User submit forms

Posted: Wed Dec 04, 2002 6:42 am
by v2^
Just wondering is it PHP that allows users to a site to add news to a page via a form, or is that asp?

If it is PHP how do i go about is there any tutorials i canm download on it?

Hope you can help me out.

Thanks.

Posted: Wed Dec 04, 2002 7:15 am
by mydimension
both of those can do it. and many other server-side scripting languages. that functioanality is not limited to just one scripting language.

Posted: Wed Dec 04, 2002 12:33 pm
by v2^
Thanks is there anywere i can get tutorials showing how to use php on this ?

start

Posted: Wed Dec 04, 2002 3:40 pm
by AVATAr
Start in php.net

then search in google...
http://www.evilwalrus.com/
http://www.phpcomplete.com/

...

Posted: Wed Dec 04, 2002 5:38 pm
by oldtimer
You can also get scripts and tutorials at hotscripts.com. Where you can just use one from hot scripts I suggest looking at their code and try to understand how they did it.
Basically you just store all your stuff in a database and have a field in there for the categories.

Posted: Thu Dec 05, 2002 7:21 am
by v2^
What would they call this kind of script ?

Posted: Thu Dec 05, 2002 10:27 am
by oldtimer
For scripts you can look under News Publishing and the same thing under tips and tutorials.

http://www.hotscripts.com/PHP/Tips_and_ ... ublishing/

http://www.hotscripts.com/PHP/Scripts_a ... ublishing/

If that does not do it for you send me a message or email me and I can give you a few examples that I use.

Posted: Thu Dec 05, 2002 10:29 am
by v2^
Thanks m8

Posted: Thu Dec 05, 2002 1:51 pm
by v2^
ok i have it up and running just 1 more thing i have merged it with a page , but it wont update to that what do i have to do?

Posted: Thu Dec 05, 2002 4:35 pm
by oldtimer
It wont update to what page? Not sure what you are meaning.

Posted: Fri Dec 06, 2002 6:14 am
by v2^
Basically i have a sit up and i was trying to merge the news page so it will show up on my index page but im not surehow to do that. IE if you have an index page i want my news script to be in the middle of it with all my nav bars and images nthere but it wontupdate when i do this i may be something wrong. Any ideas ?

Posted: Fri Dec 06, 2002 9:15 am
by oldtimer
I would have the news page that has nothing around it. Ie no menus or anything. Then just include ("thepage.php"); where you want it.

My news page comes right out of the DB so evertime it is loaded it is updated.

Jerry

Posted: Fri Dec 06, 2002 10:24 am
by v2^
Bare with me im thick at this . The news will be on my index.htm so what do i have to do ? plz i know im annoying but im new to php :oops:

Posted: Fri Dec 06, 2002 10:34 am
by oldtimer
Okay if you are like me you have your page set up with tables.

For a brief example I would have something like this.

Code: Select all

<?php
session_start();
include ("config.php");
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="150" valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td>Menu</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>Another menu</td>
        </tr>
      </table></td>
    <td width="80%" valign="top"><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td>Your normal content</td>
        </tr>
		<tr>
          <td><? include ("mynews.php"); ?></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
So basically I am inputing that newspage into the one <td> </td>.

Posted: Fri Dec 06, 2002 10:47 am
by v2^
Nice one m8 i appreciate it, i have it workingat last . Thanks for the help again :D