I have a short program that adds some numbers in a web page and updates them using session variables. It seems to be working fine except for the decimal. when I add the totals it doesn't add the decimals. It just seems to add the whole number. I'm using CTYPE(("session"),decimal) Is there...
Is it possible to format the message that is being sent from a form through php code. Right not it's just listing the different fields. Can I add a rule or any other html formatting to the type?
$subject = 'Team CSC Opportunity Registration Form';
$mailcontent = 'Opportunity Name: '.$name."\n"...
I'm sending a form using php. I want to send an receipt email to an email address that is entered in the form. It doesn't seem to work to just add a varible name that is filled out in the form and add it to toaddress.
How would you do it then...
$toaddress = $emailaddress;
I have a login script that I got from the web and it's working fine. When I change the MD5 to a SHA1 it doesn't work.
Why wouldn't I be able to change it to SHA1, aren't they the same except how they save the password?
I'm missing something in this code to make it work. Right now the output is Resource id #3
My database has a username which is janet and a scorer which is 4. I want the results of the scorer where the user name is janet to be displayed. This should be easy for somebody but not me.
<?
$conn =...
Sorry I'm very new to PHP.I'm trying to use the session variable to update a database. It says I'm logged on but only inserts the data when I have the actual name in the code and not the session variable. It seems like this code should work but it's not updating the database.
<...
I've been reading up on sql injection. I have been however using sqli instead of sql. It says to use the bind function
....this is the example
1. $variable = "O'Reilly";
2. // prepare the query
3. $query = $mysqli->prepare( "SELECT x, y, z FROM tablename WHERE user = ?" );
4.
5. // bind a...
How would I fix this simple code to protect form SQL injection. Can I put the form values in an array and use mysql_real_escape_strinb(); ?
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
$userid=$_POST['userid'];
$first=$_POST['first'];
$last=$_POST['last']...
I have 2 samples of code. The first one works on the server and my harddrive. The second one only works on my harddrive. What would be the reason for that?
SAMPLE 1
<?php
$userid=$_POST['userid'];
$first=$_POST['first'];
$last=$_POST['last'];
$organ=$_POST['organ'];
$email=$_POST['email']...
I'm just trying to put information from a form into a database. I have form information that is sent to code below. I've been working with this code with no results. It gives me an error only if I don't fill in the required fields. I've checked the connection with the mysql and it seems to be...
When I test my php pages on my current server, I get a blank page with no error message. When I test it on another server I get error messages. Can you turn the error messages on somehow in PHP on my current server?
I see there are a few questions like this already but I didn't understand them.
I am very new at this. I installed MySQL and PHP on my Hard drive. I can connect to MySQL through localhost on my hard drive. We have a server at work at a remote location. He just installed MySQL and gave me a...
I would like to create a graph that the viewer can actually make changes themselves and post it or save it on the web.
I was thinking about using drag and drop so the person viewing the graph can actually drag the objects to make changes to the graph. My problem however is once they make...
I have a drag and drop flash file that works fine. It contains questions and answers. You drag the correct answer in the correct place and it sticks.
When I bring the same movie into a level of another movie it will drag but won't stop where it's supposed to. In other words it's stops working...
I have this action script that I'm using the load from an xml file. It works fine except that later we had to put bullets in the code of the caption. Is there any way to do that with what I have already or do I have to start over with the coding and the xml files.
blank_mc._alpha = 100...
I'm pulling copy from an xml page into flash. I want to add bullets and some formatting like adding a space. Can you do that within the image source tags?
<image source="images/sec_01_04.swf" title="Module 1 - INTRODUCTION I WANT BULLETS IN HERE???" subtitle="Course Outline" caption="This...
I'm creating a text window with a scroll bar in flash. The text is coming from an xml file. On some pages there is lots of text and other pages there is only a little.
Is there anyway the code can detect how much text that is being displayed so that the scroller only shows if there it too much...
I'm creating a flash training module and using xml to pull in my flash, title, subtitle and text. I have a scroll bar that I use for the text.
Is there code I can use that will detect if the scroll bar is necessary and only have it appear when the type gets larger than the text window? It...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.