Jump to content

Booking if..else


Cloudva

Recommended Posts

Hi guys,

I'm VP & Website Manager of Emirates VA.

We currently use the booking system from"http://forum.phpvms.net/topic/1966-phpvmsbooking-release/".

What I want to do is....

When someone selects any airport in the departure list that's not OMDB the arrival only shows OMDB as option.

And of course also the another way around.

I know basic php and it's probably got something to do with the if else statement but please help me!

Vincent Peters,

www.emiratesva.com

vpeters@emiratesva.com

Link to comment
Share on other sites

Hi Vincent,

What do you mean by 'OMDB'? - I'll happily look into this for you as I am thinking of using the same module on my new site too.

Have you made any other changes to the code or should I just download the link above and then send you the amended code? - If you've made other alterations to the module code maybe you could zip up the files and attach them to the thread so I can ensure that what I send you back will work with your setup.

I'll wait to hear back with regards to what you mean by 'OMDB'

Cheers,

Bobby

Link to comment
Share on other sites

Ah ok cheers mseiwald - I only fly in Europe so I didn't even twig it was an ICAO code... I'm used to LEXX, LIXX, EGXX, EHXX etc. etc :) lol

Ok so basically then Cloudva... You only have a single hub yes and that being Dubai? - My programming experience is really with PHP and C... I would actually recommend that what you want to do her is create a small JavaScript snippet using the 'onSelect' action to trigger an update on the 'Arrival' (to hide the other airports and only display dubai) drop-down menu and vice-versa...

I will see what I can do for you but JavaScript isn't really my thing, using something like jQuery may be better but again, this is something that I have little experience with.

Link to comment
Share on other sites

Hi bobsta63, sorry for my late response!

But thanks for the advice, I have really basic skills in PHP, HTML, CSS etc. So I wouldn't even know where to start but...

I haven't modified the module, so you can modify the original. Thanks for the help!

And yes we have one hub, Dubai!

Vincent,

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...