svilla 17 Junior Poster in Training

I have a Web Service I setup on the iSeries. It works when using SOAPUI and it works from the Built in test facility in the Native Web server. But when I try to access it form the following PHP program it fails to return any data. I am obviously fairly new to this and I am not sure what I am missing.

<?php
echo 'Start of Soap Request<br />';
$client = new SoapClient("http://iseriesdev.wdm.int:10010/web/services/getItemDesc?wsdl");
print_r($client);
echo '<br />Start of Var_Dump<br />';
var_dump($client);
echo '<br />Result Print<br />';
$result = $client->testws(array("PEITEM" => "1020000000", "PEMSG" =>" "));
print_r($result);

?>

That accesses a web service on my iSeries. I can get the Web Service to work in SOAP UI, but for some reason it does not work when called from this very short program. I seem to be missing something. I have tried to look at the error logs on the iSeries, but all I have been able to find is a Null Pointer Error:

[ERROR] Exception occurred while trying to invoke service method testws
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:256)
    at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
    at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
    at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:201)
    at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:176)
    at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:163)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1661)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:937)
    at com.ibm.pvc.internal.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:85)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864)
    at com.ibm.wsspi.webcontainer.WebContainer.handleRequest(WebContainer.java:95)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:54)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:457)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:360)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:632)
Caused by: java.lang.NullPointerException
    at iseries.wsbeans.getitemdesc.GetItemDescServices.testws(GetItemDescServices.java:34)
    ... 24 more

When installing a web service on the iSeries it automatically generates the WSDL. Here …

svilla 17 Junior Poster in Training

There is a mismatch in the columns being listed and the VALUES being inserted make sure that whatever columns you have in $dblist mathc everything you have in the VALUES. If it is too hard to compare create an $sql var that holds the whole sql statement and dump or display that variable soyou can acually see what is being created. You can then copy that to either MySql workbench (or other SQL tool) to help you find the missing column.

svilla 17 Junior Poster in Training

I have this PHP program:

<?php
echo 'Start of Soap Request<br />';
$client = new SoapClient("http://192.168.201.67:10010/web/services/getItemDesc?wsdl");
print_r($client);
echo '<br />Start of Var_Dump<br />';
var_dump($client);
echo '<br />Result Print<br />';
$result = $client->testws(array("PEITEM" => "1020000000", "PEMSG" =>" "));
print_r($result);

?>

That access a web service on my iSeries. I can get the Web Service to work in SOAP UI, but for some reason it does not work when called from this very short program. I seem to be missing something. I have tried to look at the error logs on the iSeries, but all I have been able to find is a Null Pointer Error:

[ERROR] Exception occurred while trying to invoke service method testws
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:256)
    at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117)
    at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
    at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:201)
    at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:176)
    at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:163)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1661)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:937)
    at com.ibm.pvc.internal.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:85)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864)
    at com.ibm.wsspi.webcontainer.WebContainer.handleRequest(WebContainer.java:95)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:54)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:457)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:360)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:632)
Caused by: java.lang.NullPointerException
    at iseries.wsbeans.getitemdesc.GetItemDescServices.testws(GetItemDescServices.java:34)
    ... 24 more

Here is the WSDL that was generated by the iSeries. Again it works when testing with SOAPUI so hopefully it is an option or something I can use on the SoapClient instantiation.

<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns="http://getitemdesc.wsbeans.iseries/xsd" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:tns="http://getitemdesc.wsbeans.iseries" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://getitemdesc.wsbeans.iseries">
    <wsdl:documentation>getItemDesc</wsdl:documentation>
    <wsdl:types>
        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="
       
svilla 17 Junior Poster in Training

I am using Visual Studio 2010 and I am trying to enter some HTML by hand. I code the following lines:

<tr>
   <td colspan="4" class="shade tableheader">NCR Information </td>
</tr>
<tr>
   <td class="shade">Date Opened </td>
   <td><asp:TextBox ID="fldReportDate" runat="server" CssClass="datePicker"></asp:TextBox> </td>
   <td class="shade">NCR # </td>
   <td style="font-weight: bold; font-size: 12pt"><asp:Label ID="fldLog" runat="server"></asp:Label></td>
</tr>
<tr>
   <td class="shade">Closed Date </td>
   <td><asp:TextBox ID="fldClosedDate" runat="server" CssClass="datePicker"></asp:TextBox></td>
   <td align="left" class="shade">NCR Type* </td>
   <td align="left"><asp:DropDownList ID="fldNCRType" runat="server" CssClass="required"></asp:DropDownList></td>
</tr>

I save the document and it converts my code to:

<tr>
   <td colspan="4" class="shade tableheader">NCR Information </td></tr><tr>
   <td class="shade">Date Opened </td><td>
       <asp:TextBox ID="fldReportDate" runat="server" CssClass="datePicker"></asp:TextBox></td><td class="shade">NCR # </td><td style="font-weight: bold; font-size: 12pt">
        <asp:Label ID="fldLog" runat="server"></asp:Label></td></tr><tr>
   <td class="shade">Closed Date </td><td>
        <asp:TextBox ID="fldClosedDate" runat="server" CssClass="datePicker"></asp:TextBox></td><td align="left" class="shade">NCR Type* </td><td align="left">
         <asp:DropDownList ID="fldNCRType" runat="server" CssClass="required">
         </asp:DropDownList>
   </td>
</tr>

I then reformat the code, using the Visual Studio Reformat command, and I get:

<tr>
  <td colspan="4" class="shade tableheader">NCR Information </td>
</tr>
<tr>
  <td class="shade">Date Opened </td>
  <td><asp:TextBox ID="fldReportDate" runat="server" CssClass="datePicker"></asp:TextBox></td>
  <td class="shade">NCR # </td>
  <td style="font-weight: bold; font-size: 12pt"><asp:Label ID="fldLog" runat="server"></asp:Label></td>
</tr>
<tr>
  <td class="shade">Closed Date </td>
  <td><asp:TextBox ID="fldClosedDate" runat="server" CssClass="datePicker"></asp:TextBox></td>
  <td align="left" class="shade">NCR Type* </td>
  <td align="left">
    <asp:DropDownList ID="fldNCRType" runat="server" CssClass="required"></asp:DropDownList>
  </td>
</tr>

When I manually format I get what is seen in the last code example (I am not worried about the extra returns as I can take care of this using tag formatting options.), but why, when I save does it pulls everything back together. I have </td>'s and <tr>'s mingling on the same same line, it is insanity.

svilla 17 Junior Poster in Training

Have you dumped the session variable to the screen to see if it really does contain a value? Maybe it is there from a previous signon.

Instead of comparing the session variable to '' try the empty() function.

svilla 17 Junior Poster in Training
svilla 17 Junior Poster in Training

I thought that pulling images from a database was quite an expensive operation. Why not store the file path in the database and then just set the imageurl parameter of the <asp:image> tag to the path you read out of the database. This would be eaiser and would not require a handler to process the image.

If you are always going to store the images in the same directory. You can just store the filename in the database and append the correct path before setting the imageurl.

svilla 17 Junior Poster in Training

I have no idea what your column names are so substittute your column names for 'fld1'. You can concatenate any series of column names and HTML together to get your desired results.

<?php
$firstname = $_post['firstname'];
$query_Recordset1 = "SELECT * FROM cust WHERE name='$firstname'";
$Recordset1 = mysql_query($query_Recordset1, $tests) or die(mysql_error());
while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)) {

echo $row_Recordset1['fld1'] , '<br />';
}
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
echo '<br />Total records: ' , $totalRows_Recordset1;
?>

This will read through the entire result set and echo back whatever is in 'fld1' for each record. It will also print Total records: xxx at the end of the list

svilla 17 Junior Poster in Training

I like the jquery library because your can change you code to be easier to read and look like this:

$('#elementId).change( function() {
if ($('input:radio[name=bar]:checked').val() == 'Option A') {
  $('#element2).show();
}
})

I think you have use a unique ID for each radio button while you can use the same name to create a radio button group. So the above code would probably look more like:

$('input:radio[name=foo]').change( function() {
if ($('input:radio[name=foo]:checked').val() == 'Option A') {
  $('#element2).show();
}
})

Since you probably don't want this to run until the document is fully loaded It should look more like:

$(function() {
  $('input:radio[name=foo]').change( function() {
  if ($('input:radio[name=foo]:checked').val() == 'Option A') {
    $('#element2).show();
  }
  })
})
svilla 17 Junior Poster in Training

There is a comma before and after the WHERE clause. The last SET does not need a comma and ommma at the end will also cause an error. The last line of the SQL sould look like this

& "AdditionalInfo=@a34 WHERE (ID=@a35)", Con)
svilla 17 Junior Poster in Training

All of the code between <?php and ?> is executed on the server and the variables that you are using in the PHP script do not retain their values. Once you submit a form the values are in the corresponding $_POST[] variables so your if ($Submit) is acuually looking at an unitialized variable. You nood to change that statment to:

if (isset($_POST['Submit'] {
//
// Do something
//
}

This also means that you need to retrieve all of the other variables in a similar fashion:

$dates = $_POST['dates'];
$day   = $_POST['day'];
$type  = $_POST['type'];

Also, PHP scripts are processed from the top down. The way you have this coded, you are going to load the table with the existing table data before updating the table. You need to move the if (isset($_POST portion of the code above the the table load. The if (isset($_POST will prevent the update code from running the first time the web page is displayed.

svilla 17 Junior Poster in Training

You are opening and closing the PHP tags quite a bit, This is not necessary for most of your code. The script is going to be processed from top of the file to bottom.

It appears that you are calculating the $total before you calculate the $carprice or $carcondition. In fact you are clearing $carprice right before you calculate the $total.

Also, since you obviously want $carprice to hold a number why are you clearing it with: $carprice = ''; instead of $carprice =0;? Syntacically PHP will allow this, but semantically you should initalize a variable with the data type it was meant to contain.

Clean up the first section and move it after the the last section.

// Take this section of code, clean it up and ....
<?php       
if (in_array($zip1, $zipcoderadius) && in_array($zip2, $zipcoderadius)) {
         $price = $fDistanceInMiles * .32;
	$area = 0;
	$total = $price + $area + $carcondition + $carprice;
} else {
         $price = $fDistanceInMiles * .32;
	$area = ($price / 10) * 3;
	$total = $price + $area + $carcondition + $carprice;	
} 
?>

// ... move it after this section

<?php
if (isset($_POST['notrunning'])) {
    $carcondition = ($price / 100) * 15;
} 
?>
svilla 17 Junior Poster in Training

You should be using || instead of |. The || is for comparison and the | is a bitwise operator and I do not think that you are trying to shift or combine bits.

svilla 17 Junior Poster in Training

You can perform your own test inside the loop and use the break statement to break out of the loop.

svilla 17 Junior Poster in Training

Some trojans attach themselves into the operating systems IP stack. The IP stack is basically a list of programs or processes that handle the data coming into your PC. Some trojans will embed themselves into this stack so their removal cause a 'hole' in the stack and the process is now broken.

There are different methods to repair your IP configuration depending on your version of Windows. You should search for 'Repairing IP Stack' + your version of windows to find the fix.

Make sure that the trojan is completely removed before fixing the stack or you will have the same problem the next time you remove it. Run MalwareBytes until it comes back clean.

I found this link on the Microsoft Site: http://support.microsoft.com/kb/299357

svilla 17 Junior Poster in Training

I have been very successful removing Malware and virus with MalWareBytes. I have used this product to clean the laptops of students at the university I worked at. It is pretty thorough.

The software can be found at http://www.malwarebytes.org/. There is a free version which I have used exclusively and a version they sell with additional real time protection. As much as I have used it I probably should have purchased it, but for the most part I have used it on other folks computers.

Make sure that you are on the malware bytes site I listed above before you start the download since there are many malware products that will try to redirect away from this site. Te download link, will redirect you to TechSpot or majorgeeks to perform the actual download. Either site should be OK.

I have found that If I go to a clean machine and download the installer to a USB Drive and then install on the infected machine from the USB drive I have had greater success.

It will probably take several euns to completely remove all of the malware and you should boot into Safe mode for the first couple of runs. Once the complete scan comes back clean you are probably safe. If it finds any malware or viruses make sure you run it again until you have a clean scan.

Good Luck

svilla 17 Junior Poster in Training

You will need to look at a server side scripting language like PHP, JSP, ASP, ASP.Net, etc ...

svilla 17 Junior Poster in Training

Are you connecting to the database with a mysql_connect()?

You can echo out your $query variable, copy the SQL command and run the query directly against the database. This will return a specific error if there is a problem with the SQL statment.

You should also check the validity of the mysql_query() $result

if ($result = mysql_query($query)) {
  //
  // ToDo: Process Result Set
  //
} else {
  //
  // ToDo: Report Error
  //
}
svilla 17 Junior Poster in Training

In order to process PHP pages you need to run an HTTP server of some sort. It really does not have to be a separate PC as the browser acts like a client when connecting to the local HTTP Server via local host.

I also do not know why you need a separate server for running payment processing. You probably would want this in the real world, but for a proof of concept (like a thesis) you could also run this on the same PC.

I guess your configuration not only provides proof of concept but also that you are able to properly configure and address the connections between the servers.

svilla 17 Junior Poster in Training
  1. Your hosting server needs to be running a webserver, hopefully runing on port 80. If not, just make a note of the port.
  2. Get the ipaddress of the hosting server.
  3. If there is a firewall running on the hosting server, make sure that you open that port.
  4. Goto the client's browser and enter the IP address of the hosting server, followed by a colon and the port number if it is not port 80 (i.e. http://192.168.1.3:10080).

As long as you are all on the same local network you should be able to connect the webserver. If you cannot connect, disable the firewall on the server for a moment and try again. This will tell you if you opened the wrong port, or if there is some additional security on the network.

You can always create your own cheapo network using a switch or router to eliminate the network as an issue.

svilla 17 Junior Poster in Training

ASP.NET is an application framework and one of the languages you can use in that framework is C#. So whatever restrictions are on ASP.NET are also on C#.

If you want to use a Linux server then you will not be able to use C# and ASP.NET (I may stand corrected after reading about Mono). But, for the most part, when working on a Linux Server you will be using PHP or JSP.

As previously stated the best language is based upon the application and your knowledge of that language.

svilla 17 Junior Poster in Training

Take a look at the Head First books. They have an interesting way of looking at things. They are pretty easy to read and provide pretty good explanations and examples

svilla 17 Junior Poster in Training

Good Catch.

svilla 17 Junior Poster in Training

Why do you have the department table as part of the query? I would only guess that the last name resides in the employees table. You shoudl try something like this

UPDATE employees SET last_name = 'munir' WHERE emp_id = 11

svilla 17 Junior Poster in Training

Usually when you get that error message that you listed there is an error with the Query. When mysql_query returns a boolean instead of a result set it has caught some sort of error.

Echo out the mysql_error and and mysql_errno, nonshatter's query should have worked.

You can also try to run the query in phpadmin or some other MySql interface just to make sure it is valid.

karthik_ppts commented: Useful post +4
svilla 17 Junior Poster in Training

I was assuming that the rateid was the name of the field in your rates table. Just substitute the field (column) name that holds the rate id in you rates table. The field names are Case sensitive.

svilla 17 Junior Poster in Training

I am not sure what is in the variable $rateid that you are using in your Query variable, but I think you are constructing the SQL UPDATE command. it looks like the variable $rateid holds the current rate variable and so does $edit_id.

So, for example if the rate ID was 1 your where clause would be " WHERE 1=1" and since that is always true, all of your records are being updated.

The WHERE clause you have:
... where '".$rateid."' = '".$edit_id."'";

should probably be:
... where rateid = " . $edit_id ."'";

You can easily check this out by echoing your $query variable.

svilla 17 Junior Poster in Training

Remove the style="height:0px" from the flags div.

svilla 17 Junior Poster in Training

What are you asking? You are echoing the contents of a zip file so it will look like junk characters. You have to some how unzip the file either from the 'download' or via a php function.

Here is the PHP manual with all of the zip functions: http://php.net/manual/en/ref.zip.php

svilla 17 Junior Poster in Training

You may need to test to make sure that the value returned from the database is not a null before converting it.

svilla 17 Junior Poster in Training
svilla 17 Junior Poster in Training

Make sure that you check all of your includes and make sure that there are no extra lines before or after the opening an closing <?php ?> tags. In notepad this is often hard to see. If you cursor goes past the closing tag make sure you delete everything (even the carraige return) after the closing tag.

This was the most popular reason why my students session_start() would fail.

Also, in the configuration.php file the closing tag is missing as it is being commented out. While the closing tag is not necessary it probably should be there.

http://choosetheforce.blogspot.com/2008/05/should-you-close-that-php-tag.html

svilla 17 Junior Poster in Training

Are you just looking for a date picker to attach to a textbox or is there some other need for a month/day drop down list. If you look at jQuery there are a bunch of date picker apps already built.

If you truly need a Month and Day drop down box I would create an array with the number of days in each month. The only special circumstance would be for February. I would then use this array to build and replace the options in the Day drop down list. For February you would have one additional calculation to determine if it is leap year.

I would still look at jQuery no matter which option you use, as it makes dealing with DOM elements a lot easier.

A quick search turned up this page with some available jQuery date picker add-ons.

svilla 17 Junior Poster in Training

It would probably be easier if you declared a string and then moved it after the loop. I also declared a string variable so you don't have to mess with messageLabel and object notation inside the loop.

This will print all of the numbers between 0 and 10 (inclusive).

int counter = 0;
string str; 
while (counter <= 10)     {       
  str += counter.ToString() + ',';  
  counter++;     
}
str.Remove(str.Length - 1, 1);
messageLabel.Text =str;
svilla 17 Junior Poster in Training

I am not sure what you are trying to accomplish with this code, but in order to update a record you have to use the SQL UPDATE command and specify which records you wish to update (with the WHERE clause) and which fields you wish to populate (with the SET clause).

SELECTing a record from the database does not bring it into memory where you can manipulate it. Each SQL action is discrete in that what you just SELECTed does not influence any future updates or inserts.

In order to copy a record you must first SELECT it, save all of the fields and then specify the saved fields in the new INSERT command.

$result = mysql_query ("SELECT orders.staff_id FROM orders WHERE orders.staff_id = (SELECT staffs.staff_id FROM staffsWHERE staffs.staff_id = '1000')");

What are you trying to do with this code? Retrieve an existing order from the database? For what you have written here you could have used:

$result = mysql_query ("SELECT orders.staff_id FROM orders WHERE orders.staff_id = '1000')");

Since you only specified the staff_id in the SELECT statement all this query will return is 1000. Also, you are not use the result set ($result) anywhere so the results from the query are being lost.

svilla 17 Junior Poster in Training

XHEO is some third party product that may have been part of your previous install. It appears that the reference is in your web.config file. I would try removing it and see what happens. The error listing you sent will tell you exactly where to look.

Here is their web site xheo.com it actually looks like it might have been added by your web host.

svilla 17 Junior Poster in Training

It sounds like PHP is not instaled correctly on your PC/Server. You can get the latest PHP download @ php.net. Make sure that you follow the install directions for PHP on IIS 7.0.

Also...
Make sure that you have told it that .php documents are to use the PHP ISAPI dll and that you spelled it correctly including the correct path.

You should also set up your default files to include index.php.

svilla 17 Junior Poster in Training

The Uppercase warnings look like the site was first built using the older HTML standards which allow upper and lower case in the tag names and attributes. Since moving over the it looks as if you are using the XHTML 1.0 standard which does not allow upper case in the tags.

<!-- Valid HTML Code, Not valid for XHTML --->
<H1>Heading</H1>
<DIV CLASS="class1">Inside Div 1 </DIV>

<!-- Valid XHTML Code --->
<h1>Heading</h1>
<div class="class1">Inside Div 1 </div>

Now these are only warnigs so your page should still show. But it is best to fix them and to adhere to the XHTML standards if that is what you are using.

svilla 17 Junior Poster in Training

The poster was creating a registration page and given the level of the question the most likely scenario is that there is a naming mismatch. Since the poster did not mention they were using AJAX it is highy unlikely that he is passing POST variables any other way.

By setting error_reporting(0); you are just masking the problem. If you are really interested in passing POST variables by some other method it would be best to test the POST array with the isset() function. This way the user has knowledge that the data is not coming from a form and can either allow or reject the request based upon that knowledge. Setting the error reporting off just opens the site to XSS attacks.

Never assume always test.

svilla 17 Junior Poster in Training

Check the name of your submit button it should match what you put inside the $_POST[] array. I would guess that you capitalized the name on the button or forgot it completely.

svilla 17 Junior Poster in Training

I am not sure that it makes sense for a user to be able to change their password from a login screen. It would normally be a function that the user can access after they have logged on.

Once the user is properly logged on, then you can present them the option to change their password.

debasisdas commented: agree +13
svilla 17 Junior Poster in Training

Try booting up in safe mode. I beleive that you press f8 after the toshiba screen (it might be f6). This should start the computer with the bare minimum of the operating system and most programs will not be loaded.

You can then try your antivirus software. I use Malwarebytes, which you should download on another comupter and then install on the problem PC. You could also go out to the Toshiba site and get any drivers that may be corrupt.

If you have the windows CDs (or DVDs) try booting from them. If the intial install screens show up then you know that it is an OS or driver problem.

As a last resort, reinstall the OS.

svilla 17 Junior Poster in Training

You should always have server side validation regardless of whether or not you use client side validation. There are so many ways to send bad data to a web page you always want to make sure that it is clean before you process it or use it in any database activities.

Client side validation is really a convienence to the user. The client will always provide quicker feedback to the user, you can notify the user as soon as they exit the field of an invalid entry. Using only server side validation requires the user to wait for there input to be validated on the server.

The difficulty is keeping these vaidation checks in sync.

svilla 17 Junior Poster in Training

htdocs is the default root for apache servers, inetpub is the default root for windows server. But it looks like a hosted site and public_html is where your files shold reside.

I do not see any issue with the resizing (of course I am using FF4.0) except that I am not a big fan of the resizing of the main content.

The pages look pretty much the same except for the container background and triangle under the selected menu option. The first issue is because sands.jpg does not exist on the second server. There could also be a missing image for you menu options.

svilla 17 Junior Poster in Training

There are javadcript functions to intercept the screen right click function:

http://javascript.internet.com/page-details/disable-images-click.html

Any savvy user can easily circumvent this, but it does force the user to use a work around.

I have seen another trick where the background for an element is set to the image you want and then a transparent image is placed over it. When the user right-clicks to download the image all they get the transparent image:

<table>
  <tr>
    <td style="background-image: url ('images/image2view.jpg'); 
        background-repeat: no-repeat; background-position: center;">
      <img src="transparent.jpg" />
    </td>
  </tr>
</table>

There are still ways around this, just by viewing the source, but you are making it just a little more difficult. There are programs that obfuscate your HTML to make it harder to read and figure out.

If you look at most photo sites they use a watermark to protect their images rather than trying to protect the site via code and such.

svilla 17 Junior Poster in Training
svilla 17 Junior Poster in Training

You put a " (quote) at he wrong place near the end of the statement.

WHERE id=' . "$_SESSION

should be

WHERE id='" . $_SESSION

If you are not using an PHP editor, Netbeans has a PHP editor that would have helped you locate this error.

svilla 17 Junior Poster in Training

In Web Developer you can add Validation Controls which will validate the user's input on the client as well as on the server.

Here is a video on how to use them:
http://www.asp.net/general/videos/how-do-i-use-validation-controls-in-aspnet

svilla 17 Junior Poster in Training
svilla 17 Junior Poster in Training