CodeIgniter Forums
Need urgent url suggession - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Need urgent url suggession (/showthread.php?tid=9560)



Need urgent url suggession - El Forum - 06-30-2008

[eluser]nandish[/eluser]
http://se.unoserv1.com/index.php/csubscript
/updateUsdata/MI/TroyAthensHigh
/2008?uName=Krishna+Kanth&uRole=COACH_EDITOR&uPlan=COACH_EDITOR_LEVEL1&uId=Mi28270&submit;=



In the above query string i changed the uName and uPlan values and i hit enter key,its updating but i dont want this,In case if the user change the values in the query string it should redirect to login page...any suggession ?



Need urgent url suggession - El Forum - 06-30-2008

[eluser]Yash[/eluser]
Use another field for authentication.

Generate some random string in that.Execute query when that field matches and makes that field empty after execution..
so whenever u want to run query u will need an correct match code

http://se.unoserv1.com/index.php/csubscript
/updateUsdata/MI/TroyAthensHigh
/2008?uName=Krishna+Kanth&uRole=COACH_EDITOR&uPlan=COACH_EDITOR_LEVEL1&umatch=WERST324VS&uId=Mi28270&submit;=


Hope this helps you. Smile


Need urgent url suggession - El Forum - 06-30-2008

[eluser]Pascal Kriete[/eluser]
You shouldn't be storing the username in the get array. Use a session.

Btw, making your post red doesn't net you more responses.


Need urgent url suggession - El Forum - 06-30-2008

[eluser]Yash[/eluser]
yup RED is looking to BAD


Need urgent url suggession - El Forum - 06-30-2008

[eluser]nandish[/eluser]
Code igniter is red knw,thats y i posted in red color.