Re: Insert with one button

From: Date: Mon, 24 Jun 2002 22:03:50 +0000
Subject: Re: Insert with one button
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103685@lists.php.net to get a copy of this message
In your HTML each one of those select fields needs a unique name.. they can't all be called D1. No wonder you're having trouble. After that you can print_r($_POST) to see what you're getting back from the form and adjust your script to match. Good luck. -Kevin ----- Original Message ----- From: "Martin Kampherbeek" <m.kampherbeek@home.nl> To: <php-general@lists.php.net> Sent: Monday, June 24, 2002 3:23 PM Subject: [PHP] Insert with one button Hello, I'm making a predictions competitie for soccer. Now I've got a form with the matches for that weekend and some selectboxes with 1 to 9 for the goals. At the bottum of the form is a Submit button. What I want is to insert all the scores in my table predictions with just that one button. Table predictions: id date homeclub awayclub endhome endways halftimehome halftimeaway So why knows how to insert all the scores for all the selected matches in my table predictions with just that one button? Example what I mean (don't look at the error): http://www.martinkampherbeek.com/voorspelling/voorspelling.php

« previous php.general (#103685) next »