User submit forms

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
v2^
Forum Commoner
Posts: 25
Joined: Wed Dec 04, 2002 6:42 am

User submit forms

Post 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.
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post 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.
v2^
Forum Commoner
Posts: 25
Joined: Wed Dec 04, 2002 6:42 am

Post by v2^ »

Thanks is there anywere i can get tutorials showing how to use php on this ?
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

start

Post by AVATAr »

Start in php.net

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

...
oldtimer
Forum Contributor
Posts: 204
Joined: Sun Nov 03, 2002 8:21 pm
Location: Washington State

Post 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.
v2^
Forum Commoner
Posts: 25
Joined: Wed Dec 04, 2002 6:42 am

Post by v2^ »

What would they call this kind of script ?
oldtimer
Forum Contributor
Posts: 204
Joined: Sun Nov 03, 2002 8:21 pm
Location: Washington State

Post 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.
v2^
Forum Commoner
Posts: 25
Joined: Wed Dec 04, 2002 6:42 am

Post by v2^ »

Thanks m8
v2^
Forum Commoner
Posts: 25
Joined: Wed Dec 04, 2002 6:42 am

Post 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?
oldtimer
Forum Contributor
Posts: 204
Joined: Sun Nov 03, 2002 8:21 pm
Location: Washington State

Post by oldtimer »

It wont update to what page? Not sure what you are meaning.
v2^
Forum Commoner
Posts: 25
Joined: Wed Dec 04, 2002 6:42 am

Post 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 ?
oldtimer
Forum Contributor
Posts: 204
Joined: Sun Nov 03, 2002 8:21 pm
Location: Washington State

Post 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
v2^
Forum Commoner
Posts: 25
Joined: Wed Dec 04, 2002 6:42 am

Post 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:
oldtimer
Forum Contributor
Posts: 204
Joined: Sun Nov 03, 2002 8:21 pm
Location: Washington State

Post 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>.
v2^
Forum Commoner
Posts: 25
Joined: Wed Dec 04, 2002 6:42 am

Post by v2^ »

Nice one m8 i appreciate it, i have it workingat last . Thanks for the help again :D
Post Reply