Current location: Hot Scripts Forums » Programming Languages » PHP » Lost of value


Lost of value

Reply
  #1 (permalink)  
Old 07-18-05, 07:58 PM
phplearner phplearner is offline
Newbie Coder
 
Join Date: Jul 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Lost of value

The form contains a javascript:

<SCRIPT language=JavaScript>
function reload(form)
{
var val=form.AircraftType.options[form.AircraftType.options.selectedIndex].value;
self.location='report_form.php?AircraftType=' + val ;
}

</script>

/***********************************/
table of full details of the report that the user
chose in the previous page
/***********************************/

/***********************************/
display the exact same form where the user
first reports
/***********************************/

The problem:

i m able to display everything successfully with the $_GET id. but when i wan to edit and begin to click on the first drop down, it reloads the whole form and my id value is gone. The table that contains the details of the selected report shows up an error cause the reportid is lost.

What should i do?

should i put the modification of the report on another page? i did it this way so that the user could refer to the report he or she reported and change it.
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
hey I lost VB.net program NEED HELP MikioZen Windows .NET Programming 8 08-25-05 11:00 AM
variables lost on redirect? lordy PHP 5 06-01-05 07:09 PM
Lost my listing!! NeverMind HotScripts Site Bug Reports 5 02-20-05 03:28 AM
Lost text Scroller in System Crash steedvlx Script Requests 5 08-28-04 07:08 AM
Suggestions on logins...I'm lost mdhall PHP 11 01-01-04 03:24 PM


All times are GMT -5. The time now is 06:56 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.