Forums

PHP

This topic is locked

Help with wrong url parameter on php

Posted 05 Jan 2007 13:02:27
1
has voted
05 Jan 2007 13:02:27 Marcell Branco posted:
Hi,

I posted this on Dreamweaver forum but I not getting replies from there. I think it was the worng place to ask. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

Well, I'm using Dreamweaver 8, PHP 5.2.0 and MySQL 5.0 to build an web application to manage information of students of a college. To fill the application form the user must first choose the course category (e.g. Business Course) than the course(e.g. Diploma) and finally the batch (e.g. June 2006) before enter student's details. The form to insert the new student in table 'students' receives the course and batch data from other tables filtered by url parameter (e.g. localhost/CollegeManager/Students/application_form_page3.php?Batch=4).

After submiting the form the application should show the student file but it is sending the wrong url parameter to the next page:

localhost/CollegeManager/Students/view_student.php?RecordNumber=&BatchID=4

Where it should be:

localhost/CollegeManager/Students/view_student.php?RecordNumber=" . $row_InsertStudent['RecordNumber'] . "

How can I remove the 'BatchID' parameter used to filter the previous page? It remains in the url when the application request the next page.

I thing it will probably be something simple but as I'm new to dynamic sites and I learn from online tutorials I can't realise what's wrong. I searched a lot but I could not find the answer. Can someone help me please?

Regards

Marcell M C Branco

Replies

Replied 23 Jan 2007 16:47:53
23 Jan 2007 16:47:53 Peter Galbraith replied:
You would have to post your code for more help. Sometimes a submit button passes information, but this doesn't look like that. Give use a snippet and maybe we can help you out.


_______________
<i>"Insanity is hereditary - you get it from your children." Sam Levenson</i>
Stock Photo Search Engine - www.imagetrail.net

Edited by - mwookie on 23 Jan 2007 16:49:27

Reply to this topic