Tagged Questions
-2
votes
0answers
8 views
Put html table into nice array?
I am trying to get the following HTML table to an nice array in php HTML TABLE.
But i need the data like this
[MI22a] => 'ICT 1.01 WERKH','ICT 1.01 WERKH'
How can i do this?
-4
votes
1answer
37 views
php form missing data
I am trying to get a simple form to send data from website to email. The form headers and field titles are received but the user data is not, I hope someone can see a simple error:
<?php
...
-2
votes
1answer
27 views
HTML Form Submits, Data Not Showing in Database
I've set up a very simple HTML form to post a First Name and Surname into a MySQL database using mysqli, however the form redirects to my php script just fine, and I get no errors, but my data isn't ...
0
votes
0answers
11 views
Print the HTML page using TCPDF in CakePHP
I want to Print the HTML page which have a PrintPDF Button/Link
How i can print this page in PDF.
I have installed all the TCPDF with the help of this link
...
-2
votes
3answers
40 views
How to display a string in php? [duplicate]
I cannot display using php, what am I doing wrong ?
I have this file :
<!DOCTYPE html>
<html>
<body>
<?php
echo "My first PHP script!";
?>
</body>
...
-2
votes
3answers
34 views
HTML table output with PHP for loop
I am having trouble with my table as I run it through the for loop. Currently I am getting the following output:
Room(s) Check-In Check-Out No. of Nights Rate
Room1 04-09-2014 05-09-2014 ...
-5
votes
2answers
20 views
maximun input field post solution [on hold]
to send more than 1000 input field data to server plz increase the
max_input_vars in php.ini file. By default max_input_vars is equal to 1000, which means you can post only 1000 input fields, to ...
-1
votes
0answers
20 views
Display checkboxes from MySQL database, and compare with post array valus then echo checked
In POST am getting some array value that save in product_details table
I need to display checkbox checked that am getting in post value. In while loop all country displays that store in ...
0
votes
1answer
33 views
http and ajax request simulation
I have the following url
http://mywebsite/mypages
when you go to this url it will display a list of links, for example
http://mywebsite/pages?page=1
http://mywebsite/pages?page=2
...
when ...
0
votes
6answers
40 views
Detecting if href link is clicked using PHP
I would like to know if its possible to check if a link is clicked in PHP.
I created a page for downloading games and I want users to be able to download the app, but must first be logged in.
So i ...
-1
votes
2answers
23 views
How can I php validate my form data so that it has to include content?
so I have created a html form that gives the information to the document that holds the html form, and I want a php check to make sure that a particular field has information in it, my code looks like ...
-2
votes
0answers
29 views
Pause PHP execution untill the value of a element is set [duplicate]
We set setTimeout for a function(getValue) in Javascript. It is setting the value(by using document.getElementById('value').innerHTML) to a td element(td id='value') in the php page. I want to add the ...
0
votes
2answers
28 views
CSS inline style for colour not applied to text in email template in Laravel 4.2
I am setting up Laravel 4.2 to send emails. I have an email template ready for the message. The data input for the emails are stored in an array. However, if I pass a parameter for example $variable, ...
1
vote
0answers
25 views
Software to edit uploaded Videos on the Website
i'm frustrated! We're programming a website, on which the user can upload Videos via an iOS/Android Application. The Video transfer works, and the Videos are saved on our server. We transmitt them ...
0
votes
1answer
27 views
Writing code using HTML-escaping to avoid cross site scripting attack
I am a PHP newbie. This is part of a gallery code. I recently read about SQL injection and cross site scripting attack, I am trying to avoid that by html escaping on dynamically produced data. I am ...
0
votes
0answers
31 views
Codeigniter looking for “favicon.ico.html” on one server, not others
I have two servers, alpha and beta (as well as my local machine).
Codeigniter is set to use a page extension in the config, of ".html".
On the beta server, when loading a page, I am getting a ...
1
vote
1answer
17 views
PHP / HTML: How to write values from simpleXML array in input field
I have a simpleXML array called $tags that contains a list of tags which I would like to use for the default value of an input field when loading a page.
My XML (example):
Array ( [0] => ...
0
votes
0answers
34 views
Buffer (tampon) Page between two php pages
So I need a Buffer (Tampon) page between two pages. The first page contains an form that redirects you to a second page that sends out an email then redirects you back to the first page. I do have a ...
0
votes
1answer
20 views
cascading two dropdown boxes using ajax
I need to cascade two drop down boxes using ajax. In my routine, 1st drop down is for country and second one is for state. while i select the country, the state's drop down displays those country's ...
2
votes
0answers
40 views
AJAX function returns incorrect response from server. var_dump always shows wrong HTML output & returns null
This is the div tag inside which the google map is shown.
<div id="googleMap" style="width:900px;height:500px;"></div>
Show url: <span id="showurl"></span><br/>
...
-5
votes
0answers
32 views
why tables arern't responsive on chrom and IE in host but it's work on local well? [on hold]
I make table responsive with css, it works well on local with chrome but why responsive table dosn't work on chrome in host and in IE dosn't work in host nor local??
4
votes
3answers
41 views
Close incomplete href tag
I'm trying to close this kind of string:
$link = 'Hello, welcome to <a href="www.stackoverflow.com';
echo $link;
How to fix the incomplete href tag? I want it to be:
$link = 'Hello, welcome to ...
-9
votes
0answers
20 views
get infos from database by clicking on some options of dropdaown list in html & php [on hold]
I want to make a website for our lecturers that lets user select an option from a dropdown list ,, I don't know how to connect this option with some information in the database .. I mean how to let ...
1
vote
4answers
49 views
on Click event for checkbox in Javascript
I have a table with following format :
<tbody id="ggwp">
<tr class="r123 disable-it">
<td>
<input type="checkbox" name="item" class="row" ...
-3
votes
9answers
26 views
Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given… what i do wrong?
I try make php login but i get this error: Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given, what I do wrong?
register.php
<!doctype html>
<html lang"fi">
...
0
votes
1answer
13 views
Submit button got disabled when clicked in bootstrap3 and data is not being sent to database
I am working on a signup page with bootstrap I am using http://bootstrapvalidator.com/ plugin to validate my form. All validation done but when I click on submit button it got disables and data is not ...
-2
votes
2answers
41 views
how to display data from database in html not using session
I want to know if there is a way to show/display data from database in html without using session..For examle i have a function SelectMember that will select a member from member table then i want to ...
0
votes
2answers
26 views
need help on sending authentication request to server from web page
Hi guys this is my first post.
I want to send authentication request from my site to server enabling session while redirecting to other page using HTML or PHP or any thing related.
so far i have set ...
0
votes
0answers
47 views
How can I use PHP inside div ID (referring to session)?
I am creating an online chat using PHP for me and my friends to use at school. It's ending up a lot like iMessage, so I decided to go with a similar aesthetic, with the use of word bubbles aligned ...
0
votes
0answers
34 views
Remove nested HTML tags with DOMDocument [on hold]
I would like to use DOMDocument in order to remove some <font> tags when a class attribute is NOT present. My problem is that sometimes the tags are nested. I have already implemented a ...
0
votes
1answer
30 views
Passing User Data from PHP/HTML to AngularJS
I am new to AngularJS and am still learning but I didn't see this question asked anywhere on this site. I am building a traditional html/php list website that passes data such as a list id from an ...
0
votes
1answer
40 views
adding css to wordpress when shortcode is used
I can't seem to get this function to work and was wondering if someone could take a look for me.
I have some static pages that use a special form, I don't want/need the css loaded on every page of ...
0
votes
3answers
40 views
How do I use data returned from PHP to build out an HTML table?
I have a php file that is reaching out and touching a mongo db and building a bunch of table tags. When I replace the script tag code below with the php code it works fine and builds out the table.
...
1
vote
1answer
41 views
Blank(red point) before print values
I'm using codeigniter, my program is fine in localhost but get mistakes online.
It's hard to describe but everything like pictures tell:
Even worse, if I write code in js like this:
var ...
0
votes
1answer
38 views
PHP While loop only works for first two of three results?
I know I am a beginner, but I have an issue I can't figure out. I've searched everywhere. Please don't be mean:) I'm trying to learn!:)
SO I have a while loop that is making an HTML table for me, and ...
-1
votes
1answer
30 views
file_get_contents() doesn't work on concrete website
I'm trying to get HTML content from website www.pornhub.com (don't ask why :D) but classic
file_get_contents('http://www.pornhub.com');
doesn't work. I have also tried
$Url = ...
0
votes
3answers
25 views
Overiding FOSUserBundle Register Form
I know this question is asked on and on, but i just can't find any simple answer. I'm currently trying out FosUserBundle which is pretty nice, but i have a very basic and simple front-end problems :
...
0
votes
1answer
17 views
Add text inside html/xml tag with php
I am trying to add text inside a html tag:
$html = '<html>
<head>
<title>title</title>
</head>
<body style="background-color:yellow;">
<p>some ...
0
votes
1answer
32 views
php get value of unchecked checkboxes
I require the values of unchecked checkboxes to be '0' so I can determine which values have been checked and for all values (checked + unchecked) to be posted ($_POST['chk]). I am using a for loop to ...
0
votes
0answers
7 views
Footer callback in datatable
im try to implement Footer callback of datatable in a page but the my probelem is that when i add the code of javascript in my page i lost the designe of it and the fonctionnality of table.
these is ...
0
votes
1answer
16 views
Laravel 4 - How do I submit a form to add comments to a page with a URL variable?
I have a system where you go to http://example.com/restaurant/restaurant-key-example and you can view a given restaurant. I have a form at the bottom with reviews that can be added to the restaurant.
...
1
vote
1answer
20 views
wordpress/php: create an upvote button that does not refresh page
Beginning developer here, making a website using wordpress as a platform. I would like the user to be able to click an upvote button and upvote a post without refreshing the page. I figure I should ...
-1
votes
0answers
23 views
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number [on hold]
So here's my issue. I'm trying to create dynamic emails with PHP. I can't do
single quotes or the other option which is double quotes since it messes up the whole document. So I looked into
$html = ...
-1
votes
1answer
50 views
Hot to show/hide a <div> by clicking <a> tag when JavaScript is disabled?
Use tag to show/hide div when click when JavaScript is disabled. Tried adjusting following example Show hide divs on click in HTML and CSS without jQuery but that doesn't seem to work.
From this ...
1
vote
2answers
47 views
Remove HTML Tag using DOMDocument
I'd like to remove <font> tags from my html and am trying to use replaceChild to do so, but it doesn't seem to work properly. Can anyone catch what might be wrong?
$html = ...
1
vote
2answers
23 views
Force browser to only cache images (not scripts and links)
I maintain a website that receives regular updates and style changes. Following these changes, often my client will protest that I've somehow 'broken' their website purely because their browser has ...
-6
votes
0answers
25 views
Multiple quotes html anchor tag print on page using PHP [on hold]
i want to print this below anchor link in html but because lot of quotes it is creating problem. Html printing.
echo " <a id='popoverMTE3' class='popoverimage' data-content="'<img ...
1
vote
0answers
14 views
Onebox / Wordpress - Having a special function
I have a problem with the https://wordpress.org/plugins/onebox/ plugin of Wordpress. I have it included in the https://wordpress.org/plugins/my-steam-games/ plugin so all my steam games could be ...
-1
votes
0answers
15 views
European accents/characters broken in Windows 8 [on hold]
I have an international website (php/mysql) that is displays European characters perfectly on my Linux PC in all browsers. It also works perfectly when booting up into Windows 7. IE, Opera, Firefox ...
-3
votes
0answers
23 views
Why are [function.*], etc. errors in PHP linked?
Sometimes, you get errors like these:
[function.fopen]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in ...
But why is [function.fopen] a link to ...