39,323 Topics

Member Avatar for
Member Avatar for gingank

I wan to the system to field up the ip address automatic then send it into the body message but it out error can help me about this [code=php]$fields{$_SERVER['REMOTE_ADDR']}="IP Address"; $body = "Here is the following detail:\n\n"; foreach($fields as $a => $b){ $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); }[/code] Notice: Undefined index: …

Member Avatar for gingank
0
93
Member Avatar for drakkn

I have no idea where to start. I have a website which sells products via a shopping cart - when someone places an order I want to have the order automatically printed in the despatch area.

Member Avatar for kireol
0
104
Member Avatar for lkinnyc

I have what is probably a basic question, but am new to web development, so don't really know where to look for an answer. Any help is greatly appreciated as I have brick-walled on this one. I have a database of events that are organized by grandparent-parent-event_name structure. So Grandparent …

Member Avatar for Atli
0
1K
Member Avatar for justted

Hello all, Just wanted to see if I am leaving open some security hole in a script I have! When the user logs in it creates a session based on the id field of the users table! For example .... my id is 10 so a session is created with …

Member Avatar for somedude3488
0
107
Member Avatar for tiger86

I'm developing a program in PHP. I'm still a beginner in PHP thus said I may ask some questions that may seem basic. How would you go around compressing PHP into a downloadable file for redistribution.

Member Avatar for almostbob
0
120
Member Avatar for kaex21

i just want to ask if the PHP is the best in creating online information system.. if not.. can you tell me what programming language i will use? thanks you very much for helping!

Member Avatar for Atli
0
81
Member Avatar for thegirlatomic

Can someone help me see what is wrong with this? I have pasted lines 218 to 237 below (the syntax error is on line 237): [code=php] function add_hook($definition) { if (!is_array($definition)) { $definition = array('__global', $definition); } $this->hooks[$definition[0]][$definition[1]] = array(); } /** * Remove function from the allowed hooks. * …

Member Avatar for Atli
0
187
Member Avatar for ChrisJ

In a php script I'm using the Registration page only had fields for name and email address, basically. I added fields, just by copying the code on the page. I added Address1, Address2, City and State. Then I added those fields to the mysql db. However, I need help with …

Member Avatar for ChrisJ
0
306
Member Avatar for gingank

Can anyone tell me is i want to post the $to with the select box how to do it i write the code [code=php]$to= $_POST['to']; if($to == ''1") {POST "address 1";} else { $to=="0" {POST "address 2"}}[/code] Then i mail will post to email address 1 or 0. But the …

Member Avatar for cwarn23
0
136
Member Avatar for Arctic wolf

Hello, as you all already know from my previous question I'm new in PHP(by the way,thanks again for the previous help), I am trying to build a simple "walking" program,so I'll have "forwards", "backeards","right" and "left" buttons and when I click on one of them the picture on the page …

Member Avatar for Arctic wolf
0
123
Member Avatar for borntowin_786

Hi , I am a new in using codeigniter.I want to use a single show_404 page for both admin and user side.But in different way.i.e.if user try to change anything in URL he should be redirected to custom 404 page.this is not required in admin side.So how to differentiate between …

Member Avatar for cwarn23
0
87
Member Avatar for SoulMazer

This is my first PHP script, so please excuse my clumsiness. I have a HTML page which consists of a form and a PHP page which deals with the variables that are outputted. The HTML page functions as a small box that asks to input an email account/password, and the …

Member Avatar for SoulMazer
0
88
Member Avatar for mathman54

Hi, I am lookiing for information as to what people are doing with PHP: Are you using just php in your work? Are you using a templating system like Smarty? Are you learning php? Do you find any of the books teaching php any good? Which one(s)? When an author …

Member Avatar for cwarn23
0
109
Member Avatar for gingank

Hi Everyone, I using EasyPHP now i find out it work every thing in my pc but when i open my things on other pc using the intranet i cant be display it Someone tell me why this happen? i already set the httpd.conf already but still can not. If …

Member Avatar for cwarn23
0
70
Member Avatar for furqan219

Hi to all I have designed a entry page which is used to INSERT Data in a Daatabse table. I use meta fresh tag time =60seconds Now I want to show that in another page with 2 control buttons ACCEPT and REJECT. Problems: 1. I need to show only one …

Member Avatar for furqan219
0
232
Member Avatar for Plyswthsqurles

Ive got the email program itself working fine. It interacts with a database to get the "subscriber list" as the people it sends it too. My problem now is i need to fix it to be able to send .pdf files. I have found a couple of scripts that work …

Member Avatar for Plyswthsqurles
0
175
Member Avatar for julio gomez

Hi, I am testing a PHP web site offline using XAMPP server application. The website runs great, but the only problem is that the .css is not running. The odd thing is that if I am online and I test the website locally the .css file works, but if I …

Member Avatar for julio gomez
0
68
Member Avatar for hmajidy2001

Hi PHP community. I have a PHP script on Linux (CentOS 5.2) which produces a "failed to open stream: No such file or directory" which I am out of ideas on how to solve. I am on the verge of reverting to Perl. The line generating the code is: [icode]$fh2 …

Member Avatar for hmajidy2001
0
4K
Member Avatar for diafol

Hi folks, first of all sorry to say I ain't got any sample code and couldn't find anything obvious from Google and searching forums. Anyone got any ideas about integrating Joomla (latest version) session handling with a bog standard session_start/$_SESSION['user'] (etc) custom pages. Here's the explanation: I wrote a site …

0
201
Member Avatar for avukadomusic

here is my code with problems: [code=php]$url = 'somesite/somepage'; $str = file_get_contents($url); preg_match('/\w(\d*).*?\$/',$str,$matches); print_r($matches[0]);[/code] the goal is to type in any webpage and get its source code into $str and then find the first appearance of the symbol $ in the string and return only the number closest to that …

Member Avatar for digital-ether
0
105
Member Avatar for k2k

hi, does anyone know a secure way to login to another page with username and password. i found numerous on google but i don't know which one is good. if anyone has any good source codes please help.

Member Avatar for MehdiAnis
0
545
Member Avatar for camerman

Hi all. I am just beginning with PHP and I'm having some trouble installing PHP5 with Apache 1.3.29. Both finally seem to be installed and running after some tweaking of the httpd.conf file AddModule comand. However when I run a php file in my browser (IE) I get a message …

Member Avatar for b3n222
0
235
Member Avatar for geny

Hi, There is this link -> [url]http://data.giub.uni-bonn.de/openrouteservice/php/DetermineRoute_rajan.php?Start=7.0892567,50.7265543&Via=&End=7.0986258,50.7323634&lang=en&distunit=YD&routepref=Fastest&avoidAreas=&useTMC=false&noMotorways=false&noTollways=false&instructions=true[/url] ! where I need to extract text, perhaps -> <xls:Instruction>[B]Drive half left on Kaiserstraße[/B]</xls:Instruction> <xls:distance value="[B]284[/B]" uom="YD"/> (bold text). On using something like this : [code] $url="url_just_shown_above"; $output = file_get_contents($url); $xml = simplexml_load_string($output); echo $xml->xls:RouteInstruction->xls:Instruction."<br />"; [/code] I am getting error -> Parse …

Member Avatar for digital-ether
0
107
Member Avatar for itnagusak

hello. i have a page where if you don't select an option an alert message is displayed(i'm using javascript and php). when the user clicks 'ok' the parent page is refreshed. i don't want this(the refreshing). can anyone tell me what to do?

Member Avatar for itnagusak
0
88
Member Avatar for gingank

I a newbie on using the phpmailer. Correct me if i wrong. I create a html index page that a submit form. When i fill up the detail on the form press send it will send mail to my email account using phpmailer function. Question why i cant recieve the …

Member Avatar for Atli
0
268
Member Avatar for skaiwayne

I have 2 mysql tables companies and owner. 1 company can have multiple owners. So far I can insert the company and one owner just fine. But I am having a hard time inserting more owners on the same company. I don't fully understand how to get my value out …

Member Avatar for djjjozsi
0
108
Member Avatar for krm08

Hi experts, I'm extreme beginner in PHP.My problem is that,i've an html page and there's combobox on it,I want to load the form according to the selection of items. The html page is [code=html] <form action="search.php" method="post"> <select name="option" size="1"> <option value="1">value1</option> <option value="2">value2</option> <option value="3">value3</option> <option value="4">value4</option> </select> <input …

Member Avatar for djjjozsi
0
96
Member Avatar for mbabaali

am writting my class work project assignment but am stuck can some one help me out, am tring to pick data from patients table and diagnosistreatment tables which are mysql tables but the code is not working [code]<?php //This code retrieves a particulat patients record from dianosis and treatment table …

Member Avatar for djjjozsi
0
94
Member Avatar for mr.khurrams

I want to make the clone site of [url]http://fishershippingcompany.com/home.php[/url] . is it possible in wordpress or I have to self code this all??? Please suggest me

Member Avatar for mr.khurrams
0
311
Member Avatar for nigelburrell

Hi I am developing a login screen for my website, with usercode and password fields, and a Login button. I need to know how I can make the Login button automatically submit when the user hits the Enter key in either field (as apposed to the user clicking the Login …

Member Avatar for diafol
0
2K

The End.