Jump to content

MsRedImp

Members
  • Posts

    29
  • Joined

  • Last visited

    Never

Everything posted by MsRedImp

  1. I am trying to echo a variable inside a table because I am trying to create a football prediction league and don't want to have to type out all of the fixtures and team names and I need to know what prediction each person entered for which team so I have tried stringing this to a post page. I have tried numerous of things to get it to print the string variable for the team name, but nothing works. Here is my current first page: <link rel="teams.css" type="text/css" /> <style type="text/css"> input{ text-align:center; } </style> </head> <body> <form action="post2.php" method="post"> <div style="position:absolute; top:195px; left:470px"><input type="submit" value="Enter"/></div> </form> <div style="position:absolute; top:143px; left:371px; text-align:center; width: 256px; height: 31px;"> <table width="250" border="0"> <tr> <td width="80"> <style type="text/css"> echo "$team1"; </style> <style type="text/css"> echo {$team1}; </style> <?php echo "$team1"?> </td> <td width="76"><input name="selection" type="text" size="1" maxlength="1"/><input name="selection1" type="text" size="1" maxlength="1"/></td> <td width="80">England</td> </tr> </table> 1) I have related the link to a css page that contains the variable: $team1 = "Germany" 2) I have tried using a <style ="text/css"> etc, to pull the variable from the css form and echo the team name, which should say "Germany", but this doesn't work. I then did this again with different code (It may be incorrect because I am new to coding). 3) I then used a php script <?php echo variable?> etc, to see if that would echo the variable. This is most likely wrong, and I don't know where to store the variable for php to pull it. This obviously didn't work. Here is the link to my page: http://msredimp.110mb.com/post.php Thank you for any help
  2. Thanks a lot dude that's a massive help.
  3. Hey, I started learning PHP a few days ago and have gone through some tutorials but haven't found out what I need to know, here's the problem: I used this tutorial to learn about forms: http://www.tizag.com/phpT/forms.php It told me how to make a form with submit button, and then went to a process.php page echoing my input from the first page in an order form example. You can check out what this does here: http://msredimp.110mb.com/form.php But what I want to know is, if somebody uses this form, how do I receive the information they have added? How do I download that to myself? I think this might be something to do with databases, but I haven't learn that yet. Any guide into the correct direction and help is much appreciated, thank you. (I have a Wamp5 server thing set up ready for testing if needed.)
×
×
  • 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.