So, i'm working on a layout that has to be in xhtml.. i changed the extension from html > xhtml and i got this prompt.. "This page contains the following errors: error on line 15 at column 8: Opening and ending tag mismatch: link line 0 and head Below is a rendering of the page up to the first error" <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="fonts.css"> <link rel="stylesheet" href="normalize.min.css"> <link rel="stylesheet" href="main.css"> </head> <body> <section> <header> <!-- TOP SECTION OF THE LETTER --> <div id="name-address-from"> …

Member Avatar
Member Avatar
+0 forum 2

I have a sticky header on my page by setting CSS to relative and z-index. When I go to print, the first page prints fine (header, with page content starting just below header). The following pages has header on top of content. How can I force content below header on every page that is printed, or unstick the header so it only prints on first page? Thank you!

Member Avatar
Member Avatar
+0 forum 3

Hi, I am trying to learn OOP with c++ with the help of Turbo C++ version 3.0 and "C++ Primer Plus" by stephen prata. according to the book, the NEW convention for including the iostream header file in c++ is in the following way: #include<iostream> but it causes an error saying : unable to open include file "IOSTREAM" however the following code works: #include<iostream.h> but it is supposed to be the OLD convention Moreover , according to the book, it is necessary to use the following: using namespace std so that we can use cout and cin directly without having …

Member Avatar
Member Avatar
+0 forum 6

Hi all, I am wondering if I need to make multiple copies of the same include xxx.php (navigation) file in order to highlight which page the user is on. Using an include seems almost unnecessary if I do. Can you please let me know. Thank you. B

Member Avatar
Member Avatar
+0 forum 7

# Introduction # A recurring problem many newcomers face when tackling C++ is the compilation process, from sources to binaries. This tutorial will detail that process. It will be especially useful for people only familiar with higher-level languages (if any), but veterans of one or more native languages (C, Fortran, C++, D, etc.) might still learn a thing or two. And to that point, I would also mention that conceptually, most of this tutorial applies to any native, compiled language. For widest applicability, this tutorial will feature GNU tools (GCC) used in a Unix-like environment (POSIX). For Mac OSX, the …

Member Avatar
Member Avatar
+11 forum 2

I am trying to use a sms gateway app for android called SMSGateway with a http header request using curl as below; $curl_handle=curl_init(); curl_setopt($curl_handle, CURLOPT_URL,"http://192.168.1.2:9090/sendsms?phone=$phone&text=$message1&password=xxxxxxxx"); curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 10000); curl_setopt($curl_handle, CURLOPT_TIMEOUT,50000); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl_handle, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; rv:36.0) Gecko/20100101 Firefox/36.0'); $query = curl_exec($curl_handle); if($query){echo "Message Sent to $phone !<br>";}else{echo "Message Not Sent to $phone !<br>";echo 'Curl error: ' . curl_error($curl_handle)."<br>";} curl_close($curl_handle); This works perfectly fine on my local system but it gets timed out when executing from server... I need to know what is wrong...is it a curl issue ? should i use file_get_contents ? Actually I did …

Member Avatar
Member Avatar
+0 forum 8

Hi, Im trying to use a multi column combobox from this thread [Here](http://www.codeproject.com/Articles/8619/Flat-MultiColumn-Combobox-with-Autocomplete) Just wondering if there's a way to show Column header from its datasource (sql) Can't find a property to do this Thanks

Member Avatar
Member Avatar
+0 forum 4

I'm doing a one page site. At the top of the page I have a fixed position header with logo, menu etc. As it stands now, when I click on a menu link to take me to the relevant section it takes me there ok but as the header is fixed position the section starts at the top of the page under the header. Is there a way to get the section(div) to start about 7rem from the top? My header is 5rem so 7 should be good.

Member Avatar
Member Avatar
+0 forum 1

Hello, I'm working on a small project to acquire information from regulations.gov using their API. It's fairly simple (codewise) what I'm trying to do. However, I get stuck with a "HTTP error 403: Forbidden". It means I'm connecting, but something seems to be the matter. I've been in contact with the people working on the API. They said that my API and Accept header call are fine. I don't know what the problem is. Here is the code: import urllib2 from json import load url = 'http://api.data.gov:80/regulations/v3/documents.json?api_key=API_KEY' request = Request(url, headers={"Accept":"application/json;charset=UTF-8"}) response = urlopen(request) json_obj = load(response) In essence, the …

Member Avatar
Member Avatar
+0 forum 5

Is it poor convention to create a c++ file only to store various functions, and then include it into the main.cpp? This would be done so that the functions could be used in different programs as well.

Member Avatar
Member Avatar
+0 forum 19

**i have some code to redirect a user to a page if their login details are correct. part of the code is as below but it never redirects to the specified page. help me sort this out** if($pass==$dbpass){ //safely redirect user to the home page and start a new session session_start(); $_SESSION['userid'] = $userid; $_SESSION['logged'] = TRUE; echo "<script language = 'javascript'>window.location = 'createaccount.html';</script>"; //header("location:home.php"); } else { //user input and stored input did not match echo "Invalid Password"; }

Member Avatar
Member Avatar
+0 forum 3

Hi there, i have recieved this notice Warning: Header may not contain more than a single header, new line detected in C:\xampp\htdocs\a\Student_Edit_Handler.php on line 53 and these are my codes. Kindly help me to fix this. <?php session_start(); $session_id = $_SESSION['user_id']; if($session_id == null){ header("location:Student_Edit.php"); die(); } include 'Connect.php'; $flag = "success"; function rollbackData(){ mysql_query(" ROLLBACK "); global $flag; $flag = "error"; if(mysql_error() != null){ die(mysql_error()); } } $student_id = $_POST['student_id']; $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $gender = $_POST['gender']; $date_of_birth = date("Y-m-d",strtotime($_POST['date_of_birth'])); $contact_no = $_POST['contact_no']; $grade = $_POST['grade']; $section = $_POST['section']; $LRN = $_POST['LRN']; $email1 = $_POST['email1']; $email2 = …

Member Avatar
+0 forum 0

My header file header.h #ifndef HEADER_TEST #define HEADER_TEST static test_variable; #endif now i am including this in two source files IN THE SAME PROJECT. multiple definition error. i have used static specifier in header file . please help me understand this.i think static makes internal linkage. regards, ravi

Member Avatar
Member Avatar
+0 forum 1

I've got the beginnings of a website, with the header and navigation bar already implemented. I also have a main section implemented, but only in absolute positioning. I've tried many things, but how would I go about positioning it relatively? Every time I try, the section and the header get all mixed in with each other. I want the section to display in the middle. Here's my HTML...: <!DOCTYPE html> <html> <head> <title>B by Bruno | A friendly corporation</title> <link href="styles.css" rel="stylesheet" type="text/css"> </head> <body> <header> <a href="#"> <h1>B by Bruno</h1> <h6>A friendly corporation<span id="point">.</span></h6> </a> </header> <nav> <ul> <li><a …

Member Avatar
Member Avatar
+0 forum 2

Dear all, I am developing SOAP web service using netbeans. As i have got preferred SOAP request and SOAP response,now i want to add security information like username and/or password in my SOAP header Request. Please tell me how can i modify or add username in my SOAP header Request and same i can get in SOAP Response using netbeans or in which file. Please help me. Thank you.

Member Avatar
+0 forum 0

I can't work around these errors. Can someone help me out? Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int Error 3 error C2238: unexpected token(s) preceding ';' Error 1 error C2143: syntax error : missing ';' before '<' Code: #pragma once #ifndef RainfallList_H #define RainfallList_H #include "Rainfall.h" #include <iostream> using namespace std; //********************************************* // LinkedList class * //********************************************* template <class L> class RainfallList:Rainfall { public: RainfallList() { head = NULL; // Establishes empty linked list } ~RainfallList(); // Linked list operations void appendNode(L); void insertNode(L); void deleteNode(L); void displayList() const; private: RainfallListNode<L> …

Member Avatar
Member Avatar
+0 forum 5

I have a python code that reads several csv files and writes teh data to a single file but every time it loops back around to the next file it prints the headers again. Is there a way to stop this I can post my code if it is nessisary.

Member Avatar
Member Avatar
+0 forum 4

<?php //The fields and values to insert $user = array( 'users_screen_name'=>$vars ->screen_name, 'users_profile_image_url'=>$vars -> profile_image_url, 'users_name'=>$vars->name, 'users_statuses_count'=>$vars->statuses_count, 'users_location'=>$vars->location, 'users_description'=>$vars->description, 'users_oauth_access_token'=>$access_token['oauth_token'], 'users_oauth_access_token_secret'=>$access_token['oauth_token_secret'] ); // chek existing $check_column = 'users_id'; $exists = $database->exists( 'useres', $check_column, array('users_screen_name' => $vars ->screen_name )); if (!$exists) { $add_query = $database -> insert('useres', $user); if ($add_query) { //update informations include 'get_user_info.php'; } } else { $rs = "SELECT * FROM useres where users_screen_name ='".$vars ->screen_name."'"; $user = $database -> get_results($rs); // add the informations to the session foreach ($user as $key => $value) { foreach ($value as $key => $value) { $_SESSION[$key] = $value; } } //foreach …

Member Avatar
Member Avatar
+0 forum 6

cout is defined in std namespace and we also include iostream to use cout...i am confused ,please clarify this.where 1)cout is defined 2)where it is declared. and if we are including iostream ,then what is the need of STD::COUT regards,

Member Avatar
Member Avatar
+0 forum 7

I'm having issues with repopulating my input fields after being submitted if there is an error. I've tried the simple `<?php if(isset($_POST['value'])){echo $_POST['value'];} ?>` That doesn't work. And I'm thinking it's because of how I have my else statements set up. I am currently using get to repopulate my fields, and it's working but I'm not so sure it's the best practice. Example of original code: (form-check.php) <?php if(isset($_POST['firstname'])) { $firstname = $_POST['firstname']; // do something } else { header("Location: index.php?error=This field is required!"); } ?> (index.php) <form action="form-check.php" method="POST"> <input type="text" name="firstname" value="<?php if(isset($_POST['firstname'])){echo htmlentities($_POST['firstname']);} ?>" /> <input type="submit" …

Member Avatar
Member Avatar
+0 forum 4

http://s11.postimg.org/kxl3cemw3/error.png this is the least error that I can get from multiple time of debugging. [TheCodeFile](http://www.fast-files.com/getfile.aspx?file=70535) StrBlob.h has needed to use something from StrBlobPtr.h and StrBlobPtr.h needed to use something from StrBlob.h I did tried to #include each file on each other respectively, but ofcourse that would be a data structure error(that can't be fixed) due to infinite recurssion. so what should I do to fix this? P.S. the code is purely come from a c++ tutorial book "C++ Primer 5th edition". Yet, the exercise did tell to add there appropriate friend declaration, but I did all of them, the …

Member Avatar
Member Avatar
+0 forum 6

I have read tutorials using my google-fu on how to set up Pre-Compiled Headers, and now I wanted to clear up a few questions: If all the 'to be pre-compiled' headers go in one file - "stdafx.h" then how do you say you only want 1 of those files in your 'unstable' class headers/implementations? If the said PCH header only goes at the top of your implementation (.cpp) file then how is your class in the header (.h) file supposed to know about objects? Does the compiler know because it is included before the implementation includes its own header? Arrrh …

Member Avatar
Member Avatar
+0 forum 6

I kinda like the idea behind the static/fixed header, but I was wondering if there's any chance to actually extend it, and add the user information to it, like this: ![cc7912a9152d4af5365953c22bf1c3ef](/attachments/large/3/cc7912a9152d4af5365953c22bf1c3ef.png "cc7912a9152d4af5365953c22bf1c3ef")

Member Avatar
Member Avatar
+0 forum 11

what are the differences of string and cstring header files and how does the pre defined function of strcmp which is called string comparison works???? i know it gives 0 if string 1 = string 2 gives +ive and -ive if str1 is greater or less but it calculates that which one is greater????someone help??

Member Avatar
Member Avatar
+0 forum 7

Hi basically I have been trying to set up the irrlicht engine with Visual Studio 2010 and after adding in the inlcude and library file paths it seems as though Visual Studio no longer recognises "stdafx.h" as a valid precompiler?? I know this has something to do with not being able to access this but i do not know how to change this without affecting the setup for irrlicht engine. Can someone share their words of wisdom to help me overcome this? Thanks Lee

Member Avatar
Member Avatar
+0 forum 3

Hi, I want to access a web service and get the response in json using javascript. The web services can respond in json and gives me a table of records with a specific campus. I input the campus code in the text box and create the url. Now, I want to get the response in json and I'm really stuck. Can anybody give me some clues please? <FORM NAME="myform" ACTION="" METHOD="GET">Enter something in the box: <BR> <INPUT TYPE="text" NAME="inputbox" VALUE=""><P> <INPUT TYPE="button" NAME="button" Value="Click" onClick="loadurl(this.form)"> </FORM> <script> function getData(form) { var baseUrl = "https://studentwebservices/rest/location/campus/"; var campus = form.inputbox.value; var url …

Member Avatar
Member Avatar
+0 forum 2

I wrote this code to integrate with filepicker.io, it takes the URL of the file and gets the header information: $info = curl_init() or die('error 1'); curl_setopt($info, CURLOPT_RETURNTRANSFER, 1); //curl_setopt($info, CURLOPT_PORT , 8089); curl_setopt($info, CURLOPT_URL, $url); curl_setopt($info, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($info, CURLOPT_NOBODY, true); //curl_setopt($info, CURLOPT_SSL_VERIFYPEER, 0); curl_exec($info); if(!curl_errno($info)){ $response = curl_getinfo($info); echo "<pre>"; echo var_dump($response); echo "</pre>"; }else{ echo "error!"; echo "<br>" . curl_error($info); } And here is a response: array(26) { ["url"]=> string(55) "https://www.filepicker.io/api/file/CjDfxG0WSmGiY3O2eKDE" ["content_type"]=> string(9) "image/png" ["http_code"]=> int(200) ["header_size"]=> int(840) ["request_size"]=> int(86) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["total_time"]=> float(2.805141) ["namelookup_time"]=> float(0.442366) ["connect_time"]=> float(0.46781) ["pretransfer_time"]=> float(0.873621) ["size_upload"]=> float(0) ["size_download"]=> …

Member Avatar
Member Avatar
+0 forum 3

reply asap

Member Avatar
Member Avatar
+0 forum 2

Hello, in the midst of creating my Responsive Webpage - http://turningheadssalons.com/index.html - You will notice that my menu and pages are all responsive. What I'm trying to achieve is a better way to construct my menu and navigation. (As you can see it overflows when the floats are cleared below a specific width) Although the client doesn't want the primary design to change, would there be any insight to either A. Better construct the menu and navigation of the page and/or B. Better change the navigation so it won't overflow and it will align center when reached below a specific …

Member Avatar
Member Avatar
+0 forum 12

Hey guys I'm having trouble declaring a header file so I can use multiple modules. I have files named main.c foo.h and in main.c I have a <#include foo.h> but it says that it can't find the foo.h file. Why?

Member Avatar
Member Avatar
+0 forum 3

The End.