Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

[PHP] Store session

registration session

  • This topic is locked This topic is locked
5 replies to this topic

#1 syntaxerror286

syntaxerror286

    CC Lurker

  • New Member
  • Pip
  • 4 posts
  • Programming Language:Java, C#, PHP
  • Learning:JavaScript, Visual Basic .NET

Posted 11 September 2012 - 12:46 AM

Hello... i want to ask php language for my homework. I,ve created two form for system registration that are personal detail and academic detail. So primary key for personal detail is "No. Kad Pengenalan" and will be foreign key for academic detail. So how i want to store "No. Kad Pengenalan" into academic detail. Below is my design so far. Sorry for the incovenience... TQ

Attached Thumbnails

  • personal detail.jpg
  • academic detail.jpg

  • 0

#2 dargueta

dargueta

    I chown trolls.

  • Moderator
  • 4854 posts
  • Programming Language:C, Java, C++, PHP, Python, JavaScript, Perl, Assembly, Bash, Others
  • Learning:Objective-C

Posted 11 September 2012 - 10:21 AM

What do you mean by wanting to store personal detail into academic detail? Are they the same form on the same page or something else?

Also, can you post your code? We have a policy here that we'll help with your homework but we won't do it for you. If your code is long, please attach it to your post instead of putting it in the body. (Click on More Reply Options and below the text editor there's a section that says "Attach Files.")
  • 0

sudo rm -rf / && echo $'Sanitize your inputs!'


#3 syntaxerror286

syntaxerror286

    CC Lurker

  • New Member
  • Pip
  • 4 posts
  • Programming Language:Java, C#, PHP
  • Learning:JavaScript, Visual Basic .NET

Posted 11 September 2012 - 06:25 PM

oh ok... sorry... i'm forgot to post my code.... Actually i want to store 'no_kad_pengenalan' into table academic detail. So how i'm gonna do it.. TQ...

Moderator's Note: Code too long, please see attached files for the code.

Attached Files


  • 0

#4 dargueta

dargueta

    I chown trolls.

  • Moderator
  • 4854 posts
  • Programming Language:C, Java, C++, PHP, Python, JavaScript, Perl, Assembly, Bash, Others
  • Learning:Objective-C

Posted 12 September 2012 - 01:19 AM

So I'm getting the impression that you want to fill all the applicable fields from Personal Detail into Academic Detail when the Academic Detail page is loaded? In that case you're either going to have to store session data (probably cookies) or use some database and dynamically generate the contents of Academic Detail.
  • 1

sudo rm -rf / && echo $'Sanitize your inputs!'


#5 syntaxerror286

syntaxerror286

    CC Lurker

  • New Member
  • Pip
  • 4 posts
  • Programming Language:Java, C#, PHP
  • Learning:JavaScript, Visual Basic .NET

Posted 12 September 2012 - 04:38 PM

Ok... I try it first... TQ for the idea... :)
  • 0

#6 dargueta

dargueta

    I chown trolls.

  • Moderator
  • 4854 posts
  • Programming Language:C, Java, C++, PHP, Python, JavaScript, Perl, Assembly, Bash, Others
  • Learning:Objective-C

Posted 14 September 2012 - 09:35 AM

Any progress so far?
  • 0

sudo rm -rf / && echo $'Sanitize your inputs!'






Also tagged with one or more of these keywords: registration, session

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download