pb1uk Posted February 5, 2010 Report Share Posted February 5, 2010 Hello all, I'm currently in the process of making a fantasy football website in Dreamweaver and phpmyadmin. When a user visits the site and wants to enter the competition they click register which brings up the register page. There they can fill out the form containing details username, password etc. When they click the register button at the bottom of the form their details are put into the users table in the database and they are passed onto the next page where they are asked to pick their team. The team details are kept in a seperate table in the database. What i'm trying to do is pass the username that is created in the register from to the pick team page as a parameter. Currently the code for my button is as follows: In another section of the site i have passed a parameter with a link as follows: but i'm not sure how to pass a parameter using a submit button, can anyone help me please? Quote Link to comment Share on other sites More sharing options...
administrator Posted February 5, 2010 Report Share Posted February 5, 2010 You can use a hidden form field with the parameter - for example: Quote Link to comment Share on other sites More sharing options...
pb1uk Posted February 5, 2010 Author Report Share Posted February 5, 2010 You can use a hidden form field with the parameter - for example: Thanks. How could i set the value to what the user had just enterred in the field above? I did forget to add the php code for after inserting: $insertGoTo = "pickteam.php"; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.