Jump to content

Storing Values


RedRevolution

Recommended Posts

What do you mean? You want to just write what he submitted?
If so, do something like this:
In form.htm:
[code]
<html>
<form action="form.php" method="POST">
Enter your score:<br>
<input type="text" name="score">&nbsp;
<input type="submit">
</form>
</html>
[/code]
For the form.php:
[code]
<html>
<?php
echo($_POST['score']);
?>
</html>
[/code]
I am not sure if thats what you ment but it sure seems like it.

But if you ment having alot of forms and then output everything, you can either use <input type="hidden"> (not recommended) or use sessions.

Orio.
Link to comment
Share on other sites

That is a great start! Here is what I need.

I need the user to be able to go to a tournament page, enter a score, then that page stores the score somewhere so others can view it ( on the same page ).

I'm not quite sure how to approach this. This is a short rough algorithm.


> User enters a score and their name
> Score and name is stored in database
> Score and name is then shown on another page
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.