Web Development





Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.

Share tech news, updates, or what's on your mind.

Sign up to Post

I have an input form where the user enters details about them-self, which would then be stored in a database. After the form has been submitted, the user would be redirected to a page which confirms the page has been sent and also uses / echoes some of the information the user has just entered in the previous page.  

The set up is only partially working. The form works and the information is stored in the database and redirects. The redirected page is not calling the the information (just submitted into the database) even though the id of the entry entered in the previous form has been passed through.

So I have a signup form and a welcome form and functions on a functions page.

On the Welcome page I have the following function.

function find_student_by_id($id) { //so this function should return an associated array called teacher which has all teacher propertuies associated to that ID
      global $db_connection;
      $sql = "SELECT * FROM students_table";
      //$sql .= "WHERE id='" . db_escape($db_connection, $id) . "' ";
      $sql .= "WHERE id='" . $id . "' ";
      $result = mysqli_query($db_connection, $sql);
  	//echo $result;
 	$student = mysqli_fetch_assoc($result); // find first
     return $student; // returns an assoc. array called student

Open in new window

In this function, the following function is being called -

function confirm_result_set($result_set) {
     if (!$result_set) {
     	exit("Database query failed fool!.");

Open in new window

The code is failing at this function as I am receiving the error - "Database query failed fool!."

I'm assuming therefore that there is no $result_set value. Looking at this, I thought this was because the string value '$result' was being passed, not '$result_set' so I changed '$result_set' to '$result' in function 'confirm_result_set'. But no, this didn't work (which confuses me more...sigh).

I took these functions from a tutorial I was following and just tried to adapt them to my needs - but clearly I'm messing up somewhere. Any idea what is causing the issue? Many thanks for reading.
The new generation of project management tools
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Does an old domain that points to a replacement domain and website hurt the search ratings?

I heard it does.

What is the best way to accomplish this?

Hello, I have decided to build a website with Bootstrap 4, just to test it out.

I am having trouble with as simple a task as centering an image, though.

This is the full code:

<!doctype html>
<html class="no-js" lang="it">


    <!-- BOOTSTRAP 4 -->
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <script src="js/vendor/modernizr-3.5.0.min.js"></script>
    <script src="js/vendor/jquery-3.2.1.min.js"></script>
    <script src="js/vendor/popper.min.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>



        <div class="container">
            <div class="row">
                <div class="col-xs-12">
                    <div class="text-center logo">
                        <img class="img-fluid" src="img/logo/logo800.png">



Open in new window

And this is the test page on my server:

I haven't been able to find a single reason why this image shouldn't be centered, with the text-center class assigned to its containing div.

Can somebody help me understand this?
I'm trying to figure out how I can scrap/detect if the phrase "We regret we cannot open the account you requested." is on the page using CSS Selector and/or Javascript (jQuery is ok if that is the only option but want to avoid it if possible?). Below is an excerpt from the mark-up.
<!-- current page: offers --> 
        <div class="main">
     <h3>Eligibility Results</h3><p>Thank you for your online application for an account at Bank of the West.  We regret we cannot open the account you requested.<br/>
If you would like to discuss this application with Bank of the West, please contact us at:</p>

Open in new window

I have the following SP

ALTER PROCEDURE [dbo].[add_templates]
    @Firmid INT,
    @LtrName NVARCHAR(100),
    @LtrBody NVARCHAR(MAX),
    @OrderNum INT,
    @LtrType NVARCHAR(50)
INSERT INTO dbo.AdminCatalogLetterMrg
(@Firmid, @LtrName, @LtrBody, @OrderNum, @LtrType);

Open in new window

And using ASP Classic I am passing the values to the SP. But even though I am using what I think is correct code I am getting an error saying the data is being truncated.
I am not sure why because the field is nvarchar(MAX)

The example I have has 5569 characters.

Here is the ASP code. BTW I have similar code for another insert and that one works fine.

Dim sp_addtemplate__Firmid
sp_addtemplate__Firmid = "0"
if(session("Firmid") <> "") then sp_addtemplate__Firmid = session("Firmid")

Dim sp_addtemplate__LtrName
sp_addtemplate__LtrName = "0"
if(Request("LtrName") <> "") then sp_addtemplate__LtrName = Request("LtrName")

Dim sp_addtemplate__LtrBody
sp_addtemplate__LtrBody = "0"
if(Request.Form("summernote") <> "") then sp_addtemplate__LtrBody = Request.Form("summernote")

Dim sp_addtemplate__OrderNum
sp_addtemplate__OrderNum = "0"
if("0" <> "") then sp_addtemplate__OrderNum = "0"

Dim sp_addtemplate__LtrType
sp_addtemplate__LtrType = "0"
if(Request("ltrtype") <> "") then sp_addtemplate__LtrType = Request("ltrtype")



set sp_addtemplate = 

Open in new window

Hi - My client has a small website which has a members section which requires a login username and password. They don't have any record of it and their web designer is no longer available. They have asked me whether i can find a way to get the login details reset and access this section. I have full FTP access to the site and can see all the site files but i suspect this requires PHP knowledge for which i have zilch. The site is hosted with 1and1 in France but its not built through their website designer tools so there must be a file somewhere which contains the scripts that need to be edited. I have attached a screen dump of the FTP browser showing the file directory. Could someone give me a steer on whether this is doable with whatever knowledge i can scrap together or whether i need external technical help to sort this out. I would like to avoid additional costs for the client if this is easy enough but don't want to mess around with learning PHP.
This link will take you to the website's private members section: http://www.qajarfamilyassociation.org/imlogin.php?loginstatus=-3

Many thanks
I added 6 properties in Google Search Console about 8 hours ago. When I try to set the language and country, Google responds "Google has not yet processed your property", Does anyone know how long this should take? Could I have left anything undone? I did a Google search for this message but didn't find anything useful

I have a if{} else{} piece of code and a redirect function. The redirect function isn't working when hosted on my live server but works on my local server.

The cut down code is as follows:

if (mysqli_num_rows($result) > 0) 
	 echo "greater than zero";
  else {
     //echo "less than zero";
     header('Location: www.orangojapan.com/no_results.php');

Open in new window

I originally was using 'redirect_to('no_results.php');' - I had defined this function as follows:
  header("Location: " . $location); // INFORMATION IS SENT IN THE HEADER

Open in new window

This didn't work - no error message, but just no redirect / or as if the else statement was not there. To test, I then replaced  it with the php header(location) function  but this also didn't redirect as hoped. To check if the if / else statement was working I replaced the original code with echo statements. This seemed to work, so I guess the problem is with my functions?

Any thoughts or advice on this. I'm a bit puzzled.

Hi there,

After I run a job, I need to replace this entire key in a app.config file, but I'm not sure exactly how to replace the entire key.  

<add key="ORMDBSessionFileOrConString" value="text to change" />

I need to be able to run a script (batch/VBscript/anything) that will look for this exact key entry and replace the value of it.  

Any ideas/suggestions?

Thanks in advance!
- Christian

Can anyone remind me how to disable right-click using JS/jQuery?

Also, although doubtful, as I'm working with sensitive data, is it possible to disable copying, highlighting, Ctrl+C,Alt+Print Screen, and other methods of replicating the data?

Thank you..
Free Tool: Path Explorer
LVL 12
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Is there a free template for business requirement template for a software project .

Any suggestions are appreciated.
    How do I exclude www. from the following rewrite rule?

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.*)\.domain\.com
RewriteRule ^(.*)$ http://domain.com/forum/t/%1$1 [L,NC,QSA]

Hi E's,
I try to get a solution for send via Jquery ajax a object and a variable at the same call.
This is the code I have when the data is one object:
var file_data = $('#imagem').prop('files')[0];    
                    var form_data = new FormData();                  
                    form_data.append('file', file_data);                            
                        url: 'ajax_upload.php', 
                        dataType: 'text',  
                        cache: false,
                        contentType: false,
                        processData: false,
                        data: form_data,                         
                        type: 'post',
                        success: function(php_script_response){
                            alert(php_script_response); //

Open in new window

In above code "form_data" contain the information of a upload file.
My problem is, I have a simple variable to send in the same call, and usually when I send variables I use "data" like this: data: {"var":value},.
But I don't know send both, object and variable.
I need some solution that send both things, like this: data: {"var":valor, "var":valor},+form_data;

Can you help me please?!

The best regards, JC
I am trying to follow an online tutorial which would allow me to send an email using PHP Mailer. I previously had some problems with my hosting company not supporting php mail() but this has been resolved and I am now able to send an email using a script which uses php mail().  However, I've been advised to use PHP Mailer, so started following a tutorial. As far as I can understand I've followed all the steps in the tutorial and the following should work.  The code is below....

I am testing this on my live server and WAMP developer server and having no success at either.  Any advice or guidance would be really appreciated with this. I have been really struggling over the past couple of weeks to create a page which sends emails.

Many thanks


$msg = "";
	use PHPMailer\PHPMailer\PHPMailer;
	include_once "PHPMailer/PHPMailer.php";
	include_once "PHPMailer/Exception.php";
	include_once "PHPMailer/SMTP.php";

if (isset ($_POST['submit'])) {
	$message = $_POST['message'];

	if (isset($_FILES['attachment']['name']) && $_FILES['attachment']['name'] != "") {
										//$_FILES is a global variable we use when sending attachments
	$file = "attachment/" . basename($_FILES['attachment']['name']); // - The basename() function returns the filename from a path. https://www.w3schools.com/php/func_filesystem_basename.asp
										//we are uploading to "attachment" folder


Open in new window

Hi there EE experts,

We would like to ask if it's possible and how to create a data comparing in using SharePoint 2013...
The Data-Comparing that we want to do is something like when you're comparing 2 or up to 4 mobile phones, its full specifications.

We have products and we would like to use our running SharePoint 2013 in comparing these products...

Thank you and hope to hear from experts soon...
https://www.ssllabs.com/ssltest/analyze.html?d=www.magickitchen.com&hideResults=on  - this report shows several problems, and in each case, it starts: "This server is..."

So is the problem with the security on the server or with the certificate?  I don't manage the server. It's with rackspace, and we have a developer who works on it.

My take is that we need to get on the server and add some protocols and update others. But I'm not sure, and just want some clarification. Thanks.
What is the best forum software to have sub-forums that are managed by individuals and allows them to add / maintain their own categories? Ideally it would allow a user to also be moderator / admin over multiple subforums if need be, but still not able to mess with or access files from ones in which they are not admin/mod.  It would help if there was a lot of community support or plugins for various things, such as uploads/media, and API connectivity.

Any recommendation?

I would like to register and create an Action Hooks, within Wordpress, that will allow me to place three widgets next to each other.  I know I will need to register the sidebars in Functions.php, like so;

genesis_register_sidebar( array(
	'id'			=> 'home-mid-left',
	'name'			=> __( 'Home Mid Left', 'caroline' ),
	'description'	=> __( 'This is the home page middle section.', 'caroline' ),
) );
genesis_register_sidebar( array(
	'id'			=> 'home-mid-center',
	'name'			=> __( 'Home Mid Center', 'caroline' ),
	'description'	=> __( 'This is the home page middle section.', 'caroline' ),
) );
genesis_register_sidebar( array(
	'id'			=> 'home-mid-right',
	'name'			=> __( 'Home Mid Right', 'caroline' ),
	'description'	=> __( 'This is the home page middle section.', 'caroline' ),
) );

Open in new window

This creates the widget areas in Wordpress > Appearance > Widgets, which allows me to put in three separate widgets.  

Can someone help me with the code that will place this on the front page?   Specifically creating the Action Hooks,



I am a novice web designer on the side. I have always been terrible with forms. At times a client will provide a template they want me to use, which is great but I can never get the forms to work. I have a site now that I need 3 forms. My first question is, is there a site out there where I can create forms for free? If not, how can I go about this? For this particular site the template has a sendemail.php file but when I add my e-mail and test it, it doesn't work. I have that file attached and the form section of the HTML below: I assume with wordpress and other sites so popular a form would be simple to create online for free?

<!--Contact Section-->
    <section class="contact-section no-padd-top">
          <div class="auto-container">
              <div class="row clearfix">
                <!--Form Column-->
                <div class="column form-column col-lg-7 col-md-7 col-sm-6 col-xs-12">
                      <h2>Send Us Message</h2>
                    <!--Default Form-->
                    <div class="default-form style-two">
                          <form method="post" action="sendemail.php" id="contact-form">
                            <div class="row clearfix">
                                <div class="col-md-12 col-sm-12 co-xs-12 form-group">
                                    <input type="text" name="username" value="" placeholder="Full Name">
Never miss a deadline with monday.com
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Hi, I have two pages based on a template. One has a large gap, and I'm not sure why it does as the rest of the pages do not.

https://www.magickitchen.com/menu/get-well.html  has the gap
 https://www.magickitchen.com/menu/MK-meals-diabetic.html  no gap, created from same template.

Why? I can't track it down. Thanks in advance!
Just started working with a free CMS script: https://textpattern.com/.  Pretty unfamiliar with it so far.  

Have seen Textpattern sites where, after the domain, there is something like this:




and even two levels


Need to create a install of textpattern where we have


so that we can preserve the same URL structure of existing pages

Anyone familiar enough with this program to know how to do that?

I'm looking for a way to determine if my web pages are being loaded via a web browser, web view in mobile apps. or iframe in the Touch Browser app. I'm hoping there is some way but not sure? I need this functionality due to the issue of having to load specific JS files based on a user using a browser to view our web pages or an application. Any ideas? I'm assuming that the "window.navigator" object is my best bet?

How could a hacker exploit a cookie encrypted with 64 bit encryption?

I suppose the entire cookie is encrypted so a hacker could run that cookie through his decryption program until I starts finding patterns which match the English language. Is this how a hacker would crack it?

Or are there key terms the software would be looking for?

How long could this process take and wouldn't he need a pretty high powered machine for that?

Conversely, what is the highest number of bits as the best practices alternative? And how long would it take that same PC to crack it?


Anti-XSS -- What is meant by "Medium Level Projects?"

I am looking for a tool to use as I try and document the various forms of vulnerabilities my website has. And I see the following:

OWASP Xenotix XSS Exploit Framework anti-XSS and Medium Level Projects


What is meant by "Medium Level Projects?"

I have Tomcat 8.0.35 running, web application running from IntelliJ IDEA 2017.3.3 (build successful and WAR deployed) but the browser (I tried with Chrome, Firefox, and IE) is showing HTTP Status 404 when I try to access http://localhost:8080/ or

I built my web application with Maven as WAR. The WAR file was successfully deployed in Tomcat's "/webapps/ROOT" directory and "index.html" and "index.jsp" are there and at the end of the deployment the browser page is open.

Tomat is configured to default ports: 8080, 8081, 8009.

Web Development





Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.

Vendor Experts

Gil FeldmanMonday Learn more about Monday