Site navigation:  hosting hosting Dedicated servers

Professional Internet Hosting Services

Powerful reliable web hosting

Future Shock provides web hosting on powerful Microsoft Windows 2003 based servers - we do not provide Linux hosting. We offer a number of different hosting plans to suit every budget, with prices as low as £20 per year for basic hosting.

Our servers are provided by Rackspace UK and are located in London data centres operating with at least 99.99% uptime. We provide domain registration and management services - we are a Nominet Member and tag holder (for .uk domains) and JANET Approved ISP Member (for .ac.uk and .gov.uk domains). We are a Comodo SSL partner allowing us to add fantastically priced HTTPS secure encrypted communication to your website in just minutes.

link separator web development web development WebDevelopment

Clean and Intelligent Web design

Good-looking and user-friendly websites for companies of all sizes

We specialise in the production of reliable, straightforward and easy-to-use solutions which cater to the needs of users.

Whether you just want a simple contact form or a full e-commerce site, we can code it for you.
Expert level programming in ASP.NET, ASP Classic, JavaScript, XML/XSL, HTML and CSS, SQL Server and Microsoft Access. WCAG Accessibility to AAA conformance where required. Search engine friendly and easy to maintain HTML markup. Static Sites, Content Management Systems, and many other project types delivered on time and on budget.

link separator marketing marketing Marketing

Search Engines and Offline Marketing

Gaining competitive advantage

From the black arts of web marketing to improving your brand, we can assist in getting your website, and your company, the attention it deserves.

We don't pretend there's a big secret to web marketing. Using basic principles and ethical techniques, we've helped many companies move up in the search engine rankings in competitive markets such as Spanish property and children's clothing. We offer everything from straightforward advice to full online marketing services, including link campaigns and Adwords management. Whatever your budget, and whatever your market, we can help.

We also help with traditional ("offline") marketing - writing press releases, or working with your managers or external marketing consultants to achieve brand objectives.

link separator latest news latest news LatestNews

Our most recent news

18th December 2009 - we have gone live with the complete redesign of our corporate identity and our new website

14th December 2009 - we have gone live with a massive revamp of our client's wallcoverings product site Tektura.com

5th November 2009 - we have just gone live with a significantly redesigned search and product system on our client's children's
e-commerce store TheKidsWindow.com

18th September 2009 - we have added another server to our hosting service, speading the workload to improve performance and bandwidth for all customers.

link separator about us about us Future Shock Ltd

Working with the Internet since it began!

Knowledge, experience and the ability to listen

We are a small family-run business situated at the edge
of the Peak District in the centre of the UK. We've been trading as Future Shock since 1995 and became a UK private limited company in 2004. We have a very broad range of experience in the design, programming and marketing of both web-based and more traditional media.

We have worked with clients of all scales, ranging from international investment banks and multinational PLCs
to sole traders and personal home sites. We've built
e-commerce sites, estate agent sites, bespoke content managed systems, and information websites. We pride ourselves on delivering sites which best meet our clients' needs - whoever they may be and whatever their budget.

link separator contact us contact us ContactUs

Here to help

9am - 5pm GMT Mon to Fri, call 01629 825550

For urgent out-of-hours hosting support only
please text 07545 338414 (include your contact
number if different from phone used to send SMS).
Please do NOT call this number directly.

Email: post@future-shock.net

Address: Atrium Offices, Town Hall, Wirksworth, Derbyshire, DE4 4EU, United Kingdom

Or drop us a quick message:

Your email address
Brief message
link separator

Forums Index / Date Selector - General Discussion Username Password Signup Now!
Forgotten?
Topic: Start Dates
User: adethebuilder (view profile)17 Jul 2008 - 09:33
I have succesfully installed the date selector on my web site for our B&B at http://www.baconandeggs.co.uk/reservations.htm with two pickers - one for the arrival date and one for the departure date. I would now like to make the first picker (Arrival) not allow selections before today which would then not allow the departure date to be selected any earlier than tomorrow. Is that possible?

My code reads:

Arrival date:<SCRIPT LANGUAGE="JavaScript">FSfncWriteFieldHTML("DateForm","ArrDate","None",100,"FutureShockDateSelector/images/FSdateSelector/","EN","true" )</SCRIPT>
</p>
<p>Departure date:<SCRIPT LANGUAGE="JavaScript">FSfncWriteFieldHTML("DateForm","DepDate","None",100,"FutureShockDateSelector/images/FSdateSelector/","EN","true" )</SCRIPT>
</p>
 
Thanks in advance

Adrian

User: Julian (view profile)17 Jul 2008 - 09:36
This is possible with the licensed version of the Date Selector, it allows you to specify start and end date ranges (you would need to set your end dates to sometime far in the future). Usage of this feature is fuilly detailed in the instructions.txt file supplied with the Date Selector.

User: adethebuilder (view profile)19 Jul 2008 - 07:19
Thank you Julian. I have got the licensed version and can make the date picker use a specific date such as "22/07/2008" but what I want is a function that will automatically make the date tomorrow (or today if that is too difficult). Any clues please The instructions do not give me that.

Thanks in advance.

User: Julian (view profile)21 Jul 2008 - 13:07
We would usually recommend that you do this server-side (for example using ASP or PHP), but there is a thread on this forum which provides examples of doing it client-sise in JavaScript::

http://www.future-shock.net/forums/pages/viewTopic.asp?FID=3&ID=92

User: adethebuilder (view profile)24 Jul 2008 - 17:05
Thanks Julian. Using your code I have got it to default to today's date but is it possible to prevent selection of a day before today?

Also, is it possible for the date picker to pass the day of the week as well?

Many thanks. Great software and support.

Adrian

User: Julian (view profile)25 Jul 2008 - 13:43
You need to set the start and end date in the function call (not just today's date)  - see the instructions.txt file supplier with the Date Selector for more infoirmation.

There is another forum thread that discusses this http://www.future-shock.net/forums/pages/viewTopic.asp?FID=3&ID=169

There may also be other threads - try searching the forum (link at bottom of page).

Sorry Date Selector does not pass the day of the week, but you can get this using server-side ASP/PHP code (make a date variable from the date submitted by the Date Selector - this will tell you which day of the week, which week of the year, etc).

User: adethebuilder (view profile)25 Jul 2008 - 15:56
Brilliant - now guests can not select a day before today.

I understand in principle what you mean by extracting the Day of the week form the date picker code but I can not seem to find exactly how to do it.

I use the following script in my PHP code:
$Arrival = $_REQUEST['ArrDate'];

to:
Print the date for the guests to check and then email it to me.

What I want to do is extract the Day of the week from the above to print it on screen for them & to email it to me. Can you tell me exactly what PHP code I need?

Sorry to be a pain.

User: Julian (view profile)25 Jul 2008 - 16:00
Sorry, no idea on exactly how you do that in PHP - I specialise in ASP (have made some sites in PHP but not for a few years).

User: adethebuilder (view profile)27 Jul 2008 - 14:10
Hi Julian

I now have everything working so for completeness here is my solution:
To get the date in UK format starting from today I use:
<SCRIPT LANGUAGE="JavaScript">FSfncWriteFieldHTML("DateForm","ArrDate","None",100,"FutureShockDateSelector/images/FSdateSelector/","EN","true","false",FSfncDateToString(new Date()),"31/12/2010" )</SCRIPT>
The in PHP I use :
$Arrival = $_REQUEST['ArrDate'];
To get the date string (which I print on screen for the guest and email to myself for the booking) . I then use :
list($day, $month, $year) = split('[/.-]', $Arrival);
to extract the day month and year. I then use
$UsArrDate = $month . "/" . $day. "/" . $year;
To rebuild the date string in US format. Which allows me to use:
$USArrDay = date('l', strtotime($UsArrDate));
To find the day of the week which can only be done in the US format! Hope this helps somebody.
Thank you again.


User: Julian (view profile)29 Jul 2008 - 14:41
Glad you got there in the end, and thanks for sharing your code so that others may benefit from your experience.

Search Forums       Most Recent Topics       Your Favourite Topics
There are currently 8 visitors using this site.     FS Forums v1.00 © 2004 Future Shock Ltd.
Note: You must be logged in to post replies and create topics.
Registered Nominet Member and Tag Holder Comodo Official SSL partner

mon-fri 9am-5pm call
+44 (0)1629 825550

or email us at
post@future-shock.net

urgent hosting support
SMS: +44 (0)7545 338414