1
basza
Is there a code to do this
  • 2005/1/2 10:39

  • basza

  • Just popping in

  • Posts: 73

  • Since: 2004/6/21


I'm trying to a music database module, I'm getting there slowly.

When someone adds a Album I would like them to also submit the number of tracks (this I can do). Once they have subitted it I would like them to go to the next page where they will find the same number of input boxes as the amount of tracks they said it had.

Is this possible ? If so how?

Thanks in advance

Basza
http://mediarecyclers.dyndns.org

2
wtravel
Re: Is there a code to do this

Hi,

When the first record is saved (upon creation of the album record) the value of the number of records is stored. You probably retrieved the value from posted values using $_POST (or something similar).

You can use the same value after storing the record in the database by adding it to the redirect_header function. For example:

redirect_header ("index.php?records=10", 1, ""._DBSAVE."");

The number of records can then be retrieved using $_GET.

There are of course more alternatives, like first creating the album record and in the next page retrieving the stored value of number of records from the database.

Regards,

Martijn

Login

Who's Online

443 user(s) are online (316 user(s) are browsing Support Forums)


Members: 0


Guests: 443


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits