Jump to content

MarcP

Members
  • Posts

    40
  • Joined

  • Last visited

MarcP's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Thank You, I'm a newbie to php, can you give me an example? or point me to an example that I can look at?
  2. I would like some code to countdown 10 days. At the end of 10 days the user would be redirected to a webpage. I would prefer a server side language. Can't I utilize the following code to determine the countdown starting point?? <?php $d=strtotime("+10 Days"); echo date("M-d-Y h:i:sa", $d) . "<br>"; ?> The following code works but I would prefer not to set a specific date. HERE'S THE CODE THAT I HAVE SO FAR <?php date_default_timezone_set("America/New_York"); $days = 11; // Day of the countdown $month = 2; // Month of the countdown $year = 2016; // Year of the countdown $hours = 20; // Hour of the day (east coast time) $event = "Your Trial period expires."; //event $calculation = ((mktime ($hours,0,0,$month,$days,$year) - time())/3600); $hours = (int)$calculation; $days = (int)($hours/24); if ($hours <= ("0")) { echo '<script>window.location.href = "TRIALPAGE_B.html";</script>'; } ?> <ul> <li>The date is <?=(date ("l, jS \of F Y g:i:s A"));?>.</li> <li>It is <?=$days?> days until <?=$event?>.</li> <li>It is <?=$hours?> hours until <?=$event?>.</li> </ul>
  3. MarcP

    30 day demo?

    I could use some help here.....I currently am using a compiler to create some simple software. This compiler utilizes a "recipe". This "recipe" contains tags which look like this...[#tags#]. When you run your created software it will ask you for a question pertaining to that specific tag. At the end you may "Preview" your result and this will open up in a browser window. Pretty much any computer language can be used with this compiler but I prefer html and javascript. My dilemma, how can I create a 30 day demo of the software that I create?? I've tried numerous countdowns but was unsucessful. Below is a sample "recipe" for a piece of software that helps you create a press release. Contact Information: [#Company/Individual#] [#Email Address#] [#Street Address Only#] [#City and State#] [#Zip Code#] [#Phone w/ Area Code#] [#Company/Individual#] Announces the Launch of [#Product#] FOR IMMEDIATE RELEASE [#City and State#] - [#Company/Individual#] is excited to announce the launch of [#Product#]. [#Description and Basics#]. The official launch date for [#Product#] is [#Launch Date#]. [#Company/Individual#] believes [#Product#] will will appeal to the newbie, the novice and the experienced. [#More Details#] [#Product Launch Types of Marketing#] [#Quote someone related to this launch#] [#Boilerplate#] ###
  4. this seems like a very stupid question but I have to ask it. What happens when a cookie expires??
  5. Thanks Lg, the link was mentioned in my original post and I've been tryin to figure out how to write the expiration in the app. any suggestions???
  6. I'm using a compiler to write this and how do I write an .ini file??
  7. I have an applicatio that I would like to make into a 30 day trial version. This software asks a series of questions, you answer the questions and the results page pops up on your browser. I have tried various date functions, countDown, setTimeout and a host of other functions but still no luck.It's time to back up and start over so I'm asking everybody in this forum; How would YOU approach this situation??Ideally, I would like to be able have the software be totally functional for a period of 30 days from the date that the user downloaded it, then after day 30 redirected to a different page.I'm not asking anyone to write the code for me I would just like to know how any of you would approach this.I have posted several items here, some have been answered (thank you) and some have not.If it would be helpful to see the application then here's the link http://igorrecommends.com/ColorFormulator/Control.exe You don't need to answer the questions to get to the results page.I have become so confused about this that I think that a fresh approach is now the answer.Thank you for all of your anticipated helpM~
  8. Thank you Xstazy I'll see if I can get this to work
  9. I'm having a problem with a countdown function starting with "onload".i woul like to begin a 30 day countdown when someone loads my software onto their computer.at the end of 30 days they would be directed to a different location.i have tried many things but with no luckcan i get some ideas???M~
  10. I'm having a problem with a countdown function starting with "onload".i woul like to begin a 30 day countdown when someone loads my software onto their computer.at the end of 30 days they would be directed to a different location.i have tried many things but with no luckcan i get some ideas???M~
  11. Can you use the countdown function to countdown days?? I would like to have a countdown of 30 days or 15 days at which point at the end of the countdown period the person wouldbe directed to a separate siteI have tried date comparison and many other things but with no luckI really need help on this one.Thanks in advanceM~
  12. MarcP

    30 day trial

    Thanks Vchris, Using js would be fine since the software is utilizing js anyway. If someone disables js in their browserthey won't be able to use the software. As far as protecting the sourcecode I have this little program that allows me to encrypt certain segmentsof my sourcecode. If anyone is interested let me know and I'll put it up on a website so you can download itand try it.Thanks again Vchris
  13. MarcP

    30 day trial

    Good MorningI'm new to this forum and I'm hoping that I can get some help.I'm trying to add either a countDown function or a setTimeout function to make somesoftware that I made into a 30 day trial. At the end of the 30 day period the software will direct you to awebpageI'm a hairstylist and I've developed software that will calculate a hair color formula.I've tried some of the examples located here but with no luck. I'm new to JS and HTML so pleaseexcuse my ignorance on some of these issues.Any ideas?Marc huh.gif
  14. Good Morning I'm new to this forum and I'm hoping that I can get some help.I'm trying to add either a countDown function or a setTimeout function to make some software that I made into a 30 day trial. At the end of the 30 day period the software will direct you to awebpageI'm a hairstylist and I've developed software that will calculate a hair color formula.I've tried some of the examples located here but with no luck. I'm new to JS and HTML so please excuse my ignorance on some of these issues.Any ideas?Marc
×
×
  • Create New...