choose a value in a select list when submit send to new page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

choose a value in a select list when submit send to new page

Post by jonnyfortis »

I have a select list that is populated deom a mysql DB,

the DB is text feilds so can have any content in that is added by the admin.

If they put in one of the text field for example " more options"

when this is displayed in the list and submitted by a button can if the more options is submitted be sent to a new page?


thanks in advance
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: choose a value in a select list when submit send to new

Post by Christopher »

User the header('Location: http://mysite.com/newpage.php'); to redirect to newpage.php (change the URL to your page).
(#10850)
jonnyfortis
Forum Contributor
Posts: 462
Joined: Tue Jan 10, 2012 6:05 am

Re: choose a value in a select list when submit send to new

Post by jonnyfortis »

thanks

you mean use php header? can you elaborate please.

sorry for all the questions
Post Reply