Current location: Hot Scripts Forums » Programming Languages » PHP » Passing results of a form select to another form??


Passing results of a form select to another form??

Reply
  #1 (permalink)  
Old 04-29-04, 11:57 AM
NCC1701's Avatar
NCC1701 NCC1701 is offline
Newbie Coder
 
Join Date: Mar 2004
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Passing results of a form select to another form??

Im having real trouble sending the results of a drop down menu form to another form for aditing, the situation is that i have a list of items in the menu, when the choice is sleected the user presses the submit button and the entire details for the record in the databse is presented for editing in a test area, can anyone help me with this, im really really stuck, thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-29-04, 12:54 PM
rec0n rec0n is offline
Newbie Coder
 
Join Date: Feb 2004
Location: Earth
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
<form method=POST...
<select name="myselection"...

either use _POST or _GET depending on what your sending your form method.

THEN sql:
SELECT * FROM tablename WHERE myselect=$_POST[myselection]
__________________
-- my bad lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help passing variable via form move3rd PHP 11 04-21-04 11:43 AM
Passing value from one form to another form sunilmzp ASP.NET 0 04-05-04 05:02 AM
passing values from one form to another -urgent aspuser25 ASP 1 09-19-03 07:41 PM
passing array to hidden fields in form on next page? seala ASP 2 09-04-03 03:40 PM
Passing value from one form to another form sasi ASP 2 08-30-03 12:38 AM


All times are GMT -5. The time now is 12:41 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.