-
Posts
1470 -
Joined
-
Last visited
-
Days Won
2
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by freshJet
-
-
This example will be done using a single page, if you want a redirect after form submit just enter an action and move the PHP over to the new page.
<?php if(isset($_POST['submit'])){ login(); } ?> <form action="" method="post"> <input type="text" name="username" /> <input type="password" name="password" /> <input type="submit" value="Login" name="submit" /> </form> <?php function login(){ $user = $_POST['username']; $pass = $_POST['password']; $login = Auth::ProcessLogin($user, $pass); } ?>
-
1
-
-
Have you still included the codon.config.php?
-
I do it like this:
<?php function login(){ $user = $_POST['username']; // username field in form $pass = $_POST['password']; // password field in form Auth:ProcessLogin($user, $pass); } ?>
Add name="submit" to your submit button and then:
if(isset($_POST['submit'])){ login() }
Then you can do an else for errors etc...
-
<?php include('/home/flyeurov/public_html/core/codon.config.php');?>
-
1
-
-
In my opinion, virtual One World rocks, very friendly and close relations between all the VA's. it also
opens up new doors for new opportunities to be more exciting yet relaxed.
All-in-all, it's a win situation there =)
I was under the impression that virtual Oneworld was for VAs simulating airlines who are members of Oneworld, but I see there's a Jet2 Virtual there.
-
I would personally use option 3
-
I'm using it already, I need a script to produce only the latest tweet though
-
Need a new twitter feed in light of the new API (yes, it's been some time now). It's useless how the new one requires OAuth etc, whereas with the old one it was a case of a few lines of PHP or Javascript.
Any suggestions?
-
Hope you don't mind Kyle
-
1
-
-
Independence. We're an LCC and are an independent carrier therefore choose not to get involved in codeshares or alliances.
-
Oh come on guys give the guy some credit. Hes doing things by the book. We criticize those who dont get permission and when they get it we dont send our support?....Who understand you guys?
Yeah I know, but why post it? Why not wait until the opening?
-
Ehh, thanks?
-
2
-
-
That's what it was for me too, I'd edited one of the files and it didn't work. That's why the original code solution works!
-
Happened to me before but can't remember how I fixed it haha. If you look at phpVMS on GitHub you can copy the code for the appropriate files.
-
Good start
-
Why United? There are 363598535221 United VAs out there already.
Do some research, do some thinking and come up with a new project that is bound to succeed is what I say.
-
Yeah, I was glaring at it for ages going; what?
-
1
-
-
I'll give it a go. It was confusing me because it worked for other fields, for example I tested it using flightnum and it added all of the flight numbers fine.
EDIT: Thanks a lot, that's sorted it
-
Am I the only one seeing the wrong screenshot?
-
2
-
-
Going back to this after a few months, still no avail:
public function totalPax($pilotid){ $query = "SELECT SUM(load) AS totalpax FROM phpvms_pireps WHERE pilotid = '".$pilotid."'"; $result = DB::get_row($query); return $result->totalpax; }
I am completely stumped. The only thing that comes to mind is that the field name is wrong, but I checked and right enough it is called 'load'.
-
Could you edit that to a code snippet rather than a spoiler please? Makes it easier to read and therefore easier to help you...
-
Just have to stick to Chrome on Android devices.
-
It's the codon.config, and no.
-
Nope, the ones with redirects end with chunks of HTML.
Landing in Amsterdam
in Off-Topic Banter
Posted
Very nice, didn't know you had 737-800s in the fleet.
Fernando, It's the PMDG 737NGX.