Jump to content

[SOLVED] posting into a table?


A2xA

Recommended Posts

[code]I'm wanting a user to post into a table on the same page and it to remain there for a certain period of time. 

where it's going/preview?: [url=http://wiicharged.com/index.php?action=hubs]http://wiicharged.com/index.php?action=hubs[/url]

I have my main file as this:

include("./hubs.html");
include("./put.php");



The hubs.html:
[code]
<html>
<head>
<title>Hubs</title>
</head>
<body>
<form action="put.php" method="post">
Enter your game<input type="text" name="game" />
Friend Code <input type="text" name="fc" />
<input type="submit" />
</form>
</body>
</html>

 

the put.php:

<br />
<br />
Table Below:
<br />
<br />
Username: (Will add later with mysql)
<br />
<br />
Game (This will echo $_POST["game"]
<br />
<br />
FC  (This will echo $_POST["fc"]
<br />
<br />
Personal Message ( will add later with mysql)

 

the put.php is supposedly going to be a table.  Right under the form.  This will then whatever the user posted in the table for 30 minutes or whatever.  Can someone help me please.  Or atleast give me a general understanding of a table? Thanks![/code][/code]

Link to comment
https://forums.phpfreaks.com/topic/87684-solved-posting-into-a-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.