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.

GalaxyTramp

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    GalaxyTramp got a reaction from mantis in Problem regarding the speed of the website   
    Hi
     
    Use a tool like pagespeed to check where the problem is with the page loading times.
     
    https://developers.google.com/speed/pagespeed/
  2. Like
    GalaxyTramp got a reaction from wordpress12 in Problem regarding the speed of the website   
    Hi
     
    Use a tool like pagespeed to check where the problem is with the page loading times.
     
    https://developers.google.com/speed/pagespeed/
  3. Like
    GalaxyTramp got a reaction from Nillervision in Question About CSS Resets   
    Quote from Eric Meyers "this is a starting point, not a self-contained black box of no-touchiness." So it is OK to strip out the elements that are not relevant to your usage.
  4. Like
    GalaxyTramp got a reaction from Ck123 in Full time and freelance - tax advice?   
    Best just find yourself somebody to do your book keeping. Worked for me in the past and far cheaper than a full blown accountant usually.
  5. Like
    GalaxyTramp got a reaction from bocaj in Learning to code...   
    I agree with Mike and so do many others See Here
  6. Like
    GalaxyTramp got a reaction from DigitalSquid in W3 validation?   
    I expect ALL MY CODE to validate, if it doesn't then I am just not doing a good enough job. That said when integrating something like Facebook or Twitter into a page sometimes you just have to accept non-validation, even though I dislike doing so.
     
    "that'll do" will never do for me.
  7. Like
    GalaxyTramp got a reaction from MWP in PHP Form Checkbox Mail   
    $Regions = Trim(stripslashes($_POST['Regions'])); You cannot do this as you need to loop through the results.
  8. Like
    GalaxyTramp got a reaction from MWP in PHP Form Checkbox Mail   
    OK lets see what is actually in the BODY
     
    Try this and see what the result is:
     

    <?php $EmailFrom = "info@uksecurity-directory.co.uk"; $EmailTo = "info@uksecurity-directory.co.uk"; $Subject = "Contact Form"; $CompanyName = Trim(stripslashes($_POST['CompanyName'])); $Email = Trim(stripslashes($_POST['Email'])); $Website = Trim(stripslashes($_POST['Website'])); $Description = Trim(stripslashes($_POST['Description'])); // validation $validationOK=true; if (!$validationOK) { print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; exit; } $Body = ""; $Body .= "CompanyName: "; $Body .= $CompanyName; $Body .= "\n"; $Body .= "Website: "; $Body .= $Website; $Body .= "\n"; $Body .= "Email: "; $Body .= $Email; $Body .= "\n"; $Body .= "Description: "; $Body .= $Description; $Body .= "\n"; $Body .= "Regions: "; foreach ($_POST['Regions'] as $Regions){ $Body .= $Regions . "\n"; } echo $Body; ?>
  9. Like
    GalaxyTramp got a reaction from MWP in PHP Form Checkbox Mail   
    Just realised what you are doing. You need to put the name into the array not the id:
     

    <ol> <li><label class="checkbox">UK Wide</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="UKWide" /></li> <li><label class="checkbox">Scotland</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="Scotland" /></li> <li><label class="checkbox">North East</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="NorthEast" /></li> <li><label class="checkbox">North West</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="NorthWest" /></li> </ol> <ol> <li><label class="checkbox">Yorkshire</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="Yorkshire" /></li> <li><label class="checkbox">West Midlands</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="WestMidlands" /></li> <li><label class="checkbox">Wales</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="Wales" /></li> <li><label class="checkbox">East Midlands</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="EastMidlands" /></li> </ol> <ol>
  10. Like
    GalaxyTramp got a reaction from MWP in PHP Form Checkbox Mail   
    And the same with services
     

    <label class="checkbox">UK Wide</label> <ol> <li><label class="checkbox">UK Wide</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="UKWide" /></li> <li><label class="checkbox">Scotland</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="Scotland" /></li> <li><label class="checkbox">North East</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="NorthEast" /></li> <li><label class="checkbox">North West</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="NorthWest" /></li> </ol> <ol> <li><label class="checkbox">Yorkshire</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="Yorkshire" /></li> <li><label class="checkbox">West Midlands</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="WestMidlands" /></li> <li><label class="checkbox">Wales</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="Wales" /></li> <li><label class="checkbox">East Midlands</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="EastMidlands" /></li> </ol> <ol> <li><label class="checkbox">East Anglia</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="EastAnglia" /></li> <li><label class="checkbox">London</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="London" /></li> <li><label class="checkbox">South West</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="SouthWest" /></li> <li><label class="checkbox">South East</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="SouthEast" /></li> </ol> <ol> <li><label class="checkbox">Northern Ireland</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="NorthernIreland" /></li><br /> </ol> <p class="Region">Please select the security services you provide</p><br /> <ol> <li><label class="checkbox">Keyholding</label> <input name="Services[]" type="checkbox" class="checkbox" id="Services" value="Keyholding" /></li> <li><label class="checkbox">CCTV</label> <input name="Services[]" type="checkbox" class="checkbox" id="Services" value="CCTV" /></li> <li><label class="checkbox">Close Protection</label> <input name="Services[]" type="checkbox" class="checkbox" id="Services" value="CloseProtection" /></li> <li><label class="checkbox">Door Supervisors</label> <input name="Services[]" type="checkbox" class="checkbox" id="Services" value="DoorSupervision" /></li> <li><label class="checkbox">Residential Security</label> <input name="Services[]" type="checkbox" class="checkbox" id="Services" value="ResidentialSecurity" /></li> </ol> <ol> <li><label class="checkbox">Security Dogs</label> <input name="Services[]" type="checkbox" class="checkbox" id="Services" value="SecurityDogs" /></li> <li><label class="checkbox">Security Guards</label> <input name="Services[]" type="checkbox" class="checkbox" id="Services" value="SecurityGuards" /></li> <li><label class="checkbox">Security Kit & Equipment</label> <input name="Services[]" type="checkbox" class="checkbox" id="Services" value="SecurityKit" /></li> <li><label class="checkbox">Surveillance & Investigations</label> <input name="Services[]" type="checkbox" class="checkbox" id="Services" value="Surveillance" /></li> <li><label class="checkbox">Training Companies</label> <input name="Services[]" class="checkbox" type="checkbox" id="Services" value="Training" /></li> </ol>
     
    Add this to PHP code
     

    $Body = ""; $Body .= "CompanyName: "; $Body .= $CompanyName; $Body .= "\n"; $Body .= "Website: "; $Body .= $Website; $Body .= "\n"; $Body .= "Email: "; $Body .= $Email; $Body .= "\n"; $Body .= "Description: "; $Body .= $Description; $Body .= "\n"; $Body .= "Regions: "; foreach ($_POST['Regions'] as $Regions){ $Body .= $Regions . "\n"; } $Body .= "Services: "; foreach ($_POST['Services'] as $Services){ $Body .= $Services . "\n"; }
     
    Now you should be good to go
  11. Like
    GalaxyTramp got a reaction from MWP in PHP Form Checkbox Mail   
    Sorry got a bit confused over who was the OP.
     
    MWP you need this:
     

    <label class="checkbox">UK Wide</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="UKWide" /> <label class="checkbox">Scotland</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="Scotland" /> <input type='submit' name='submit' value='Get Value'>
     
    AND IN YOUR PHP
     

    $Body = ""; $Body .= "CompanyName: "; $Body .= $CompanyName; $Body .= "\n"; $Body .= "Website: "; $Body .= $Website; $Body .= "\n"; $Body .= "Email: "; $Body .= $Email; $Body .= "\n"; $Body .= "Description: "; $Body .= $Description; $Body .= "\n"; $Body .= "Regions: "; foreach($_POST['Regions'] as $region){ $Regions = $region . "\n"; $Body .= $Regions; $Body .= "\n"; }
     
    Nathan. The answer you commented on was not meant to be used as written but just a pointer in the general direction.
  12. Like
    GalaxyTramp got a reaction from MWP in PHP Form Checkbox Mail   
    <label class="checkbox">UK Wide</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="UKWide" /> <label class="checkbox">Scotland</label> <input name="Regions[]" type="checkbox" class="checkbox" id="Regions" value="Scotland" /> <input type='submit' name='submit' value='Get Value'> <?php foreach($_POST['Regions'] as $region){ echo $region; } ?>
  13. Like
    GalaxyTramp got a reaction from MWP in PHP Form Checkbox Mail   
    Try this Checkbox
  14. Like
    GalaxyTramp got a reaction from CreativeShelf in Complete Utter Idiot!   
    Dont assume everybody over 30 is not "tech wise". I actually fall outside both categories but manage very well thank you
     
    Just firing up the BBC Micro!!
  15. Like
    I will probably get burned on this BUT NOPE! Thats the downside of iframes you cannot control the content, apart from all the other negatives that is.
  16. Like
    GalaxyTramp got a reaction from funsella in Setting up a localhost for an entire network   
    Give each PC a static IP address then just navigate to your PC say 192.168.1.8 by entering 192.168.1.8 in the browser on the other PC's. If you have your websites in a directory named my-websites then 192.168.1.8/my-websites will get you there. Depends on where you have your root set in config.
     
    You may have to configure your firewall to allow this but it is quite simple.
  17. Like
    GalaxyTramp got a reaction from Twan in PHP contact form   
    <?php if (isset($_POST['submit'])) { $myemail = 'my@mail.com';//<-----Put Your email address here. $title = 'Title'; $name = $_POST['name']; $company = $_POST['company']; $house = $_POST['house']; $street = $_POST['street']; $postcode = $_POST['postcode']; $daynum = $_POST['daynum']; $evenum = $_POST['evenum']; $email = $_POST['email']; $how = $_POST['how']; $information = $_POST['information']; foreach($_POST['product'] as $value) { $product_msg .= " - $value"; }
     
    Try this
  18. Like
    In the stylesheet these tags are set to print only, they do not display on the page:
     

    /* =Print Style -------------------------------------------------------------- */ #site-title, #site-description { float: none; line-height: 1.4em; margin: 0; padding: 0; } #site-title { font-size: 13pt; }
     
    and the code on the page:
     

    <h1 id="site-title"> <span> <a href="http://www.aandjelectronics.co.uk/" title="A and J Electronics.co.uk" rel="home">A and J Electronics.co.uk</a> </span> </h1> <div id="site-description">Electrical/Electronic repairs, parts, servicing & fitting East Sussex</div>
     
    When you print the page the contents of these tags prints NOT the banner graphic.
     
    Hope this helps
     
    Colin
  19. Like
    GalaxyTramp got a reaction from abeer in pagination problems   
    Hi
     
    You need to add an id to your pagination. Try this:
     

    <?php mysql_connect('mysql2', 'pegu', 'segu') or die('Connection Failed'); mysql_select_db('legu') or die('Database not found'); $iDefaultRecord = 1; $id = isset($_GET['id']) ? filter_var($_GET['id'], FILTER_VALIDATE_INT) : $iDefaultRecord; $result = mysql_query("SELECT title, dtl, meta_d, meta_k FROM page WHERE id=$id"); if (!mysql_num_rows($result)) { header('Location: 404.php', true, 404); die();}$row = mysql_fetch_array($result);$title = stripslashes($row['title']);$dtl = stripslashes($row['dtl']);$meta_d = stripslashes($row['meta_d']);$meta_k = stripslashes($row['meta_k']); $pages = explode("{newpage}", $dtl); if(isset($_GET['page']) && $_GET['page'] > 0) { $current_page = $_GET['page']; if($current_page > count($pages)) { $current_page = count($pages); } } else { $current_page = 1; } $description = $pages[$current_page - 1]; $navigation = "Pages: "; for ($i = 1; $i <= count($pages); $i++) { if($i == $current_page) { $navigation .= "<b>"; } $navigation .= "<a href='?page=" . $i . "&id=" . $id . "'> " . $i . "</a> "; if($i == $current_page) { $navigation .= "</b>"; } } ?>
  20. Like
    GalaxyTramp got a reaction from Pedro in Vintage Record Player   
    Lovin it

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.