39,326 Topics

Member Avatar for
Member Avatar for branding4you

I have dropdown on Enquiry page, some text boxes etc with a capthca below and submit button I used this code for my text boxes [CODE]<input name="fld_name" type="text" id="fld_name" size="40" value="<?php if($_POST['fld_name']) { echo $_POST['fld_name']; } ?>" /> [/CODE] it keeps the data in the textboxes when the user does …

Member Avatar for branding4you
0
351
Member Avatar for doctorphp

Hi everyone. I have made a mailing list script but I want to modify it so that I can post some variables in the message box. I would like something like this. [ATTACH]20604[/ATTACH] To display something like this. [ATTACH]20605[/ATTACH] I have tried putting [CODE]' . $fetch['first'] . '[/CODE] and [CODE]$fetch['first'][/CODE] …

Member Avatar for doctorphp
0
1K
Member Avatar for hellojohnatan

Hi guys, I would like to have an online user counter on my webpage. However, I don't want my visitors to see how many users that are in my website. I am already using good analytics but it is not giving me real time data. But how can I see …

Member Avatar for minitauros
0
137
Member Avatar for thijscream

hey, i'm trying to make a pdf, but i get the following error: 1temp/KW1.pdfError!! as you can see in the code i echo the $factuurnummer, that's the 1 in the error, then i echo the patth it should go to what is temp/wk1.pdf and then i echo the error. does …

Member Avatar for squinx22
0
161
Member Avatar for Xaibo

Hi guys! I´m really new to PHP, but i'm involved in a small project. But i'm having an issue with the mail form. It was working, but as the user refreshed the page it would send the values of the variables again and again... First i managed to auto refresh …

Member Avatar for squinx22
0
336
Member Avatar for turt2live

Hello, I have a PayPal button that uses a submit button to pay, but I have a small problem with it. The client I'm making this for also wants tracking (Hits). Is it possible to have the submit button also run a javascript before going to paypal? If you need …

Member Avatar for turt2live
0
158
Member Avatar for AndreRet

I have been stuck on this for 2 days now. There were a ton of code available, but not one working solution. Below is my code to send the mail once a user requested a service at an auto repair shop. It updates mysql with all of the data and …

Member Avatar for AndreRet
0
276
Member Avatar for ROTC89

Hi, i am try to display and insert info on a person into my database but i keep getting this error whenever i enter the info You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use …

Member Avatar for vibhaJ
0
195
Member Avatar for bobgodwin

I'm using this code to check if a record exists or not: [CODE] $filename = $_FILES["file"]["name"]; /// FROM FORM $ext = substr($filename, strpos($filename,'.'), strlen($filename)-1); $bull = substr($filename, 0, strpos($filename, '.')); $myQuery = "SELECT * FROM $media WHERE label='$bull' "; $result = $dbh->prepare($myQuery); $result->execute(); $cont = $result->rowCount(); if ($cont == 1) …

Member Avatar for bobgodwin
0
150
Member Avatar for navp

Hey guy, I want to know if there is a way of using PHP in JavaScript. I have no idea how can i get the variables from PHP into JavaScript. I am making a pizza application, the php file is a confirmation page. The user can either go back to …

Member Avatar for navp
0
259
Member Avatar for jimmyo88

I'm about to start an assignment and am just trying to think of the most logical waysd of doing things at the moment. The assignment involves using mysql and php to create a website for a training company. The part i am having trouble conceptualizing is this: "Tutors are created …

Member Avatar for jimmyo88
0
109
Member Avatar for branding4you

I have textarea comming from mysql. In the backend the user tyes a letter type format in a textarea They ise Enter to make new rows etc __________________________________________________ Dear john Welocome to our website hope you find it usefull Thank you The Team ___________________________________________________ When I pull the data from …

Member Avatar for branding4you
0
86
Member Avatar for TechySafi

[CODE]<?xml version='1.0' encoding='UTF-8'?> <response> <status>get_ticket_ok</status> <ticket>bxquuv025arztljze2n438md9zef95e8</ticket> </response>[/CODE] This is all you got! How you will convert it into php array or something?

Member Avatar for TechySafi
0
297
Member Avatar for LloydFarrell

Hi everyone, I have been asked to help extract data from a xml file and use the data to input into html form designed in php I have read a few articles but im missing the point some how... On the file that im trying to get the data to …

Member Avatar for LloydFarrell
0
605
Member Avatar for LloydFarrell

Hi all - I have a xml file that I am trying to extract data from and create variables to use in a PHP / html form. I am new to extracting information from xml and creating variables The XML file is show below and what I would like to …

Member Avatar for LloydFarrell
0
147
Member Avatar for ofir0803

Hi [CODE]$asking_price = "20"; $original_value = "100"; $discount = (1-($askingPrice/$original_value))*100; echo $discount;[/CODE] why $discount always equal to 100 ? it supposed to be 80.

Member Avatar for ofir0803
0
132
Member Avatar for anirban1087

Hi, i am working on a billing page. Where the user will add item(s) to a bill, now the number of item(s) in a bill is not pre defined. So i am taking one input at a time, then adding them to a table in the same page. Now when …

Member Avatar for anirban1087
0
133
Member Avatar for qazplm114477

I have spent about a couple of hours trying to read the pcre regex syntax on the php.net manual but I can't for the love of god grasp the concept of it. If anyone can help me it would be greatly appreciated. I'm trying to split some strings into an …

Member Avatar for kekkaishi
0
106
Member Avatar for didi00

Hi guys, I'm trying to use an individual CMS. But when I installed it it shows me this notice: NOTICE: UNDEFINED INDEX: _PAGE IN C:\WAMP\WWW\MYCMS.PHP ON LINE 16 The php file is this: [CODE] <?php if ($_SERVER["REQUEST_URI"]) { if (is_array($tmp = explode("?" , $_SERVER["REQUEST_URI"]))) { $tmp = explode("&" , $tmp["0"]); …

Member Avatar for didi00
0
196
Member Avatar for phpDave

Hello, I wrote a script to send out an email and it works except for the subject line. Not sure why. Anyone know? Is it the "" marks? [CODE] $to = ($_POST['e_mail']); if (!isset($_POST['e_mail'])) $subject = "Registration at MySite.com"; $message = "Welcome to MySite! Your user account has been created. …

Member Avatar for phpDave
0
91
Member Avatar for Xentiago

Hi, I have been left in the lurch with a few php scripts on my site and I'm the first to admit coding is not my strong point! I have managed to fix most of the issues, but I am stuck on the following. Basically, I want to query the …

Member Avatar for diafol
0
319
Member Avatar for RazorRamon

I'm trying to build a mortgage qualifying script for a company. My php code is working fine .. up until the if else statements. fyi I'm using wamp... heres the code. The code if very raw, i've only been working on it for a day or 2, but I can't …

Member Avatar for Insensus
0
180
Member Avatar for LWS

Hi, i had upload image to mySQL database... The problem is i unable to open or view the image that uploaded. May i know how display image from database by selectted id ??? the picture below is my "upload" table... Appreciate for you help

Member Avatar for trueedmar
0
2K
Member Avatar for OldDeveloper01

Hey i was wondering if it would be possible to have this as a security measure. I am in the middle of creating an admin page for my website. I want them to register though. However to register, in one of the fields they must provide a secret number which …

Member Avatar for diafol
0
97
Member Avatar for anirban1087

Hi, I have a php page to take user input. My page has 3 sections. [B]Section 1::[/B] I am taking some information from the user. [B]Section 2::[/B] I am again taking some input from the user, and [B]Section 3::[/B] I am displaying the data from section 2, in a table. …

Member Avatar for anirban1087
0
132
Member Avatar for saqib_604

Hi! there is some problem in uploading file. some one help me and please make corrections in code. //// upload_form.html <html> <body> <form enctype="multipart/form-data" action="upload_file.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> Choose a file to upload: <input name="uploadedfile" type="file" /><br /> <input type="submit" value="Upload File" /> </form> </body> </html> ///////upload_file.php …

Member Avatar for tiggsy
-1
192
Member Avatar for mossa

I'm construted a php-class where I create and save some elements in an XMLfile. Outside that class I instantiate the class and save it in a _SESSION['obj'] if the session has not been created yet, otherwise I want to get the document back and add new elements to the XMLfile. …

Member Avatar for mossa
0
320
Member Avatar for chris.aaker

I would think php.net but I could not find them. The SVN repository requires a developers password so I could not check there. A more difficult question - How do I install PHP 5.2.4 on Ubuntu Linux 10.10. Thanks in advance.

Member Avatar for sutindaya
0
197
Member Avatar for Stefano Mtangoo

Hi, I have Object that performs not only registration/Login but also manages users after the log in. Does it make sense to store object of that class in session or I should only store userID on session and use that to Query DB? My Object will contain user details (Full …

Member Avatar for Stefano Mtangoo
0
107
Member Avatar for rajeesh_rsn

Hi friends In one of my project I displayed data from data base in page wise order ( ie 10 data of a thread in to one page , just like a forum ) I just want to give a link at the first listing page which showing link to …

Member Avatar for tomato.pgn
0
80

The End.