Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

LabourSoft

Members
  • Joined

  • Last visited

  1. Hi all, I would really appreciate some help here: I have the following script with which I intend to: email the details of the data entered in 3 fields on the webpage (html part). The fields are: Leave Type (options) Start Date (text) End Date (text) I'm already picking up the Staff number from a XML file using pHp which works great. Now I just need to also include in this email the Leave Type, Start Date and End Date as part of the email Body <?php session_start(); if(!file_exists('users/'.$_SESSION['username'].'.xml')){ header('Location: login.php'); die; } $hre = new SimpleXMLElement('users/hremail.xml', 0, true); $epos=$hre->email; $eltype=$_POST['Leave_Type']; $elstart=$_POST['Start_Date']; $elend=$_POST['End_Date']; $ebody=$eltype . " " . $elstart . " " . $elend; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>User Page</title> </head> <body> <form method="post"> <center> Leave Type <select name=Leave_Type> <option value="Annual">Annual</option> <option value="Sick">Sick</option> <option value="Family">Family</option> </select></br></br> Start Date <input type="text" name=Start_Date></br></br> End Date <input type="text" name=End_Date></br></br> <a href="mailto:<?php echo $epos ?>?subject=Application for Leave for <?php echo $_SESSION['username']?>&body=<?php echo $ebody ?>" >Apply</a> </center> </FORM> </body> </html>

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.