close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

how do I make a page to load once a condition failed?

Thread began 5/19/2020 8:48 pm by michaelf0199272 | Last modified 5/25/2020 12:55 pm by Ray Borduin | 38 views | 6 replies |

michaelf0199272

how do I make a page to load once a condition failed?

I have an online course/training registration form. I want it to continue to show the registration page if the deadline has not been reached.

http://xcelservicetech.com/deadline-count3simple.html

but if the deadline had been reached the Reigistration Page/Form stop showing and the link below is activated.

http://xcelservicetech.com/deadline-count4simple.html


Any help will be appreciated ... thanks in advance.

Michael

Sign in to reply to this post

Ray BorduinWebAssist

You would just have to turn them into php pages and then add an IF statement to the top of the first page that redirects to the second one if the date has passed. It would look something like:

php:
<?php

if (time strtotime("5/30/2020")) {
  
header("location: deadline-count4simple.html");
  die();
}
?>
Sign in to reply to this post
Did this help? Tips are appreciated...

michaelf0199272

the actual page for the registration was done not using dynamic page (php) and it was done wordpress. I am not sure how to exactly add the PHP lines that you provided without making the page a .php

https://www.bkaasystems.com/learning-center ... it is a little not as simple. When you click VIEW ... the registration page loads as a pop up, it is this pop page that I am looking to add date counter for deadline to

*** disclosure --- I am not the original author of the website. I am only trying to see if I can help add a deadline counter that can trigger to a new page when deadline has been reached.

Sign in to reply to this post

Ray BorduinWebAssist

I'm not sure how to do this on a wordpress site without direct access to the page to make it a .php page.

Sign in to reply to this post
Did this help? Tips are appreciated...

michaelf0199272

That is exactly what I thought must be done ... "make the page a .php"

Thanks.
Michael

Sign in to reply to this post

Ray BorduinWebAssist

Since this isn't related to any webassist extensions or functionality I'd need you to sign up for a premier support ticket if you want my help directly in doing the updates to your wordpress site.

Sign in to reply to this post
Did this help? Tips are appreciated...

michaelf0199272

I am trying to see if the owner of the website will pay for the support, since I was offering to help him free of charge. Once he gives a go ahead, I will at that time, re-engage you. Thanks.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...