Can anyone point me in the right direction (a tutorial, or snippet, etc..) towards processing form data on the same page? Either that, or perhaps opening a box to display a form, like some login systems.
Need a couple pointers.
Page 1 of 15 Replies - 843 Views - Last Post: 27 December 2012 - 06:36 PM
Replies To: Need a couple pointers.
#2
Re: Need a couple pointers.
Posted 26 December 2012 - 05:43 PM
Depends what you mean by process. If you intend to store or retrieve information from a database, or data from a file on the server, then you'll need to study a server-side language such as PHP, ASP or ColdFusion (among others).
If you just want to do some processing on the page itself (client-side) then you could extract get parameters from the url using Javascript. But if this is your objective then there is no need to submit the form: clicking buttons, etc., on the page can cause some Javascript code to execute.
Javascript, again, would normally be used to do this. There are many (many!) tutorials available on the internet, and on this site, to achieve these things.
If you just want to do some processing on the page itself (client-side) then you could extract get parameters from the url using Javascript. But if this is your objective then there is no need to submit the form: clicking buttons, etc., on the page can cause some Javascript code to execute.
Quote
or perhaps opening a box to display a form, like some login systems.
Javascript, again, would normally be used to do this. There are many (many!) tutorials available on the internet, and on this site, to achieve these things.
This post has been edited by andrewsw: 26 December 2012 - 05:47 PM
#3
Re: Need a couple pointers.
Posted 26 December 2012 - 06:44 PM
Can you link to tutorials for the latter? Also, I'd like to ask if there's any safer method than using pure GET values?
#4
Re: Need a couple pointers.
Posted 26 December 2012 - 10:43 PM
> Also, I'd like to ask if there's any safer method than using pure GET values?
What exactly is your end objective? Forget the technical details. What are you trying to design here?
What exactly is your end objective? Forget the technical details. What are you trying to design here?
#5
Re: Need a couple pointers.
Posted 27 December 2012 - 08:47 AM
Well, I just want to login/register and process all the data (modifying, changing, checking MySQL, etc...) on the same page, or in a pop-up box on the page. Either way, I just want to register an account on the same page without utilizing GET too much.
#6
Re: Need a couple pointers.
Posted 27 December 2012 - 06:36 PM
Ok. That would require server side code, best with a REST API of some sort and then the use of AJAX would allow you to do changes on a form without actually leaving the page.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote






|