Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions example5_clicktocall.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?
<?php
// DIY Click-To-Call using the 46elks platform

function newCall ($call) {
Expand Down Expand Up @@ -36,7 +36,7 @@ function newCall ($call) {
<html>
<body style="font-family: Verdana; max-width: 380px;">

<? if(!$_POST['mobilenumber']): ?>
<?php if(!$_POST['mobilenumber']): ?>

<h2>Click-To-Call example</h2>
<p>
Expand All @@ -48,12 +48,12 @@ function newCall ($call) {
</form>
</p>

<? else: ?>
<?php else: ?>

<h1>Initiating call.. Answer your phone.</h1>
<? newCall ($call); ?>

<? endif; ?>
<?php endif; ?>

</body>
</html>