Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Silver Get Previously Entered Variables? filter_list
Author
Message
Get Previously Entered Variables? #1
Let's say I was making a complex phishing site, one that required multiple different pages. And for example, the 'email' variable is on one page, and the 'password' variable is on the next.

How would I make it so the php stores the 'email' variable, and on the "login" button click, simultaneously outputs the 'email' and 'password' variable.

I've got it so it can output them one at a time, so first the 'email' variable, then afterwards the 'password' once its been entered and submitted.

However this poses an issue, because if two people logged in within seconds of each other it would mess up the order of the outputs.

Any help or ideas available?
~this post is fictitious; I am playing a persona~

[+] 1 user Likes Tibo inc's post
Reply

RE: Get Previously Entered Variables? #2
I'd assume the original site is using Javascript to simply add the password input tag so it submits both of them to the same php script.

Storing the first var in a session seems to be the easiest way if you don't want to use js. You may send me the original page so I can see how it's originally done.

Reply

RE: Get Previously Entered Variables? #3
(03-01-2020, 08:52 PM)chunky Wrote: I'd assume the original site is using Javascript to simply add the password input tag so it submits both of them to the same php script.

Storing the first var in a session seems to be the easiest way if you don't want to use js. You may send me the original page so I can see how it's originally done.

I'll send you a pm
~this post is fictitious; I am playing a persona~

[+] 1 user Likes Tibo inc's post
Reply

RE: Get Previously Entered Variables? #4
i would hook the form submission, store the values in a hidden input, submit the form, then read the variables on the next screen. i wrote a small tutorial in the coding section that shows you how to hook the form element using eventhandlers, try that.

or maybe you mean this? https://www.php.net/manual/en/function.g...d-vars.php
(This post was last modified: 07-20-2020, 01:32 PM by sunjester.)

Reply







Users browsing this thread: 1 Guest(s)