39,393 Topics

Member Avatar for
Member Avatar for davidjennings

Hi all, I am trying to pass values to the cart. When I select add to cart the values show up in the url but does not direct the user to the shopping cart. url output. http://214.146.126.103/streetwise/result.php?itemname=CITROEN&returnurl=http%3A%2F%2F214.146.126.103%2Fpassenger.php&price=123.00&storeid=xxxxx&quantity=1[/url] [code=php]//passing variables from db $m_id=$row{products_make}; //echo $m_id;// test out put valid $p_id=$row{products_price}; //echo …

Member Avatar for davidjennings
0
175
Member Avatar for srihari3d

error:...cannot send session cache limiter... headers already sent by php....can any one give me the solution?..........when ever login with username & password...the session is not stored in the first time....but the next time login the session is stored with the username....what is the prblm?.....i m sending code also...... <?ob_start(); session_start();?> …

0
46
Member Avatar for smartness

I need a mysql user authentication class with only 3 user "levels" 1. Admin 2. Registered (or normal) user 3. Guest I tried phpclasses.org but couldn't find a good one (maybe i didn't try hard enough :-O ) So any suggestion is welcome! :)

Member Avatar for pritaeas
0
47
Member Avatar for JerieLsky

Hi guys, i don't know what 's causing this php error: [QUOTE]403 Forbidden. You don't have permission to access /Duplicate of Edited Site/< on this server.[/QUOTE] Need help. This problem actually occured when i clicked the submit button from a certain form. Thanks in advance. This is code: [CODE]<html> <head></head> …

Member Avatar for ivatanako
-1
199
Member Avatar for JerieLsky

I'm just new in php actually and this is the problem that i have been encountering lately. I actually have one .html file and .php file, on the .html file I created a form which looks like this: [CODE]<table cellpadding="0" cellspacing="5" border="0" width="500" align="center"> <form name="FAQ" method="post" action="question.php"> <span style="font-family: …

Member Avatar for ivatanako
0
233
Member Avatar for AdventDeo

Ok so I have two separate AJAX function that I want to combine but have no idea how. The first 2 files are to call up a table with cells in the form of text-boxes, and the last 2 files are linked dropboxes. What I want to do is to …

Member Avatar for AdventDeo
0
121
Member Avatar for j_limboo

Echo google problem Please advice you inputs are greatly appreciated [CODE]<?php if (empty($_GET['q'])){ echo "What are you doing?"; } else { /* getting value from the search form creating a new variable*/ $ser = $_GET['q']; /* applying logic and creating a new variable to it*/ $logic = "~resume (filetype:pdf OR …

Member Avatar for j_limboo
0
100
Member Avatar for j_limboo

Got stuck How to make $newUrl a hyperlink in a different html page new to php code [CODE] <?php if (!isset($_GET['p']) || empty($_GET['p'])) { $_GET['p']=0; } if (empty($_GET['q'])){ echo "What are you doing?"; } else { /* getting value from the search form creating a new variable*/ $ser = $_GET['q']; …

Member Avatar for j_limboo
0
260
Member Avatar for click here

hi iam tried to send mail but see how it appear iam use mail function when i make 2 line the message appear line one [COLOR="Red"]\n[/COLOR] line 2 and how i can make it go to the inbox and not spam and its appear some time strange how can i …

Member Avatar for almostbob
0
126
Member Avatar for j_limboo

[CODE] <?php $ser = $_GET['q']; $logic = "~resume (filetype:pdf OR filetype:doc OR filetype:rtf OR filetype:htm OR filetype:html) skill -jobs -apply -submit -required -wanted -write -sample"; str_replace ("skill", "$ser", $logic); echo $logic; ?> [/CODE] I am not able to replace skill please help New to PHP Please advice Thank You

Member Avatar for smartness
0
77
Member Avatar for jay_412

hey guys,,could you help me bout my problem? I want to make a function and i want to preselect its ID's not its values,, this is my code [QUOTE] function getVisibility(){ echo "<option id=0>Inactive</option> <option id=1>Active</option> <option id=2>Active on Website</option> <option id=3>active on churchwide calendar</option>"; } [/QUOTE] I want to …

Member Avatar for smartness
0
104
Member Avatar for j_limboo

echo $_GET[x] changing it into variable... any code sugessions Please advice new to PHP some inputs first change $_GET[x] to variable and then echo

Member Avatar for j_limboo
0
122
Member Avatar for charliesindex

Hi, I am developing an application that requires uploading multiple files. Number of files can be very large eg 200. I like to know if there is a restriction on number of files in multiple file upload. I am aware that there is a size limitation of 2mb, is that …

Member Avatar for charliesindex
0
34
Member Avatar for somedude3488

Got bored and made a function that handles filling strings similar to mysqli bind_param. It actually gets used a lot in my code. Figured someone else might find it useful. Example usage: Using question marks as place holders [code] $str = 'Hello, my daniweb user name is ? and my …

Member Avatar for somedude3488
0
152
Member Avatar for masterjiraya

[CODE=PHP] <html> <title> consonants vowels and numbers </title> <body bgcolor=red text=white><form method=post><font size=15> Enter a word(s):<input type=text name='phrase'></br> <input type=submit value=generate></br> <?php $vowel; $conso; $nums; switch($_POST['phrase']){ case'a': case'A': case'E': Case'e': Case'I': case'i': case'O': case'o': case'U': case'u': $vowel+=1; break; case'0': case'1': case'2': case'3': case'4': case'5': case'6': case'7': case'8': case'9': $nums+=1; break; …

Member Avatar for diafol
0
149
Member Avatar for karthikanov24

hi In the following posted code(add products at admin side) [CODE]function addProduct() { $catId = $_POST['cboCategory']; $name = $_POST['txtName']; $description = $_POST['mtxDescription']; $price = str_replace(',', '', (double)$_POST['txtPrice']); $qty = (int)$_POST['txtQty']; $images = uploadProductImage('fleImage', SRV_ROOT . 'images/product/'); echo $images; $mainImage = $images['image']; $thumbnail = $images['thumbnail']; echo $mainimage; echo $thumbnail; $sql = …

Member Avatar for Rkeast
0
74
Member Avatar for sammy95

Hello ! I am looking for a script that can fetch emails from a mail account and post them on a webpage. The body of the mail should be the body of the post and any attachments should be posted as an downloadable attachment to the webpage post. Each new …

Member Avatar for ShawnCplus
0
55
Member Avatar for sim_pack

how secure are php codes/scripts when they are deployed in a server (or when they become online)? if i put constants and/or passwords in my php codes, will they be visible and be 'sitting duck' targets for hackers?

Member Avatar for almostbob
0
320
Member Avatar for cybershark

Hi, I'm trying to get the IF\ELSE statement within the foreach to print "keyword," or if it's the last element in the array just to print "keyword" [CODE=php]$key = "mykey"; $url = "http://access.alchemyapi.com/calls/text/TextGetKeywords"; $text = <<<EOD Barrier Logic The barrier logic is a reliable cost effective solution to barrier electronics. …

Member Avatar for cybershark
0
127
Member Avatar for varadharaja

Hi Friendz!!! Am varadharaj new to be this forum,and i would like to share your ideas,about php and more technical...anyone can reply for me... Thanks alot... varadharaj

Member Avatar for guru12
0
71
Member Avatar for j_limboo

I am new to PHP This is Google search results in your site or localhost Here is the code but I am stuck the page does not go to 2 page Please advice [code=php]<form action="search.php" method="POST"> <input type="text" name="search"> <input type="submit" value="Search"> </form> if (@$_POST['search']==""){ echo "What are you doing?"; …

Member Avatar for cwarn23
0
320
Member Avatar for rejisha.m

Hi all, Can we upload a file as background process ? if so how can we do that??? if anybody knws please please do reply... thanx in advance...

0
43
Member Avatar for sam023

i have included following code in .htaccess file and place it my project root folder..!! [code]Options +FollowSymlinks RewriteEngine on RewriteRule ^(.*)\.htm$ $1.php [nc][/code] but url still showing .php extension like localhost/project/index.php instead of localhost/project/index.htm.!! i have check the mod_rewrite is loaded.!! or anybody can tell another way to rewrite the …

Member Avatar for cwarn23
0
117
Member Avatar for railto

Hi guys and gals, Im working on a project at present where i need to be able to upload a batch of apporx 400 files each week. What i need the script to do is, when a driver enters his number and a pin that the script will then search …

Member Avatar for railto
0
148
Member Avatar for rejisha.m

Hi all, i am new in php. i have a doubt regarding the file uploading. What my requirement is -- process the file upload as a background process using the shell commands like system() or exec() .How can we do this? From the site --php.net -- i got the following …

0
42
Member Avatar for click here

[URL="http://jooria.com/Tutorials/Website-Programming-16/Limit-Characters-From-Your-Text-139/index.html"]i found this Limit Characters From Your Text [/URL] but i cant use it when my text became less than 2 words please any one can fi it

Member Avatar for click here
-1
88
Member Avatar for Aamit

I want to find all hidden values name and values ?? in div id divTopLeft. How to find this?? [code] <div id="divTopLeft" class="workarea" > <ul id="ul2" class="draglist"> <li id="li1_2" class="list1"> PR 3 <input id="draglist_directory_submissionPR3" type="hidden" value="13" name="draglist_directory_submissionPR3"/> </li> <li id="li1_1" class="list1" style=""> <input id="draglist_directoryPR3" type="hidden" value="10" name="draglist_directoryPR3"/> </li> <li id="li3_3" …

Member Avatar for jay_412
0
101
Member Avatar for ronny22

can somebody help me by telling me what the problem is this is my error i keep getting Notice: Array to string conversion in C:\wamp\www\plaincart\library\config.php on line 61 Notice: Array to string conversion in C:\wamp\www\plaincart\library\config.php on line 61 Notice: Array to string conversion in C:\wamp\www\plaincart\library\config.php on line 61 Unknown column …

Member Avatar for darkagn
0
155
Member Avatar for Stefano Mtangoo

Hi All, I want to incorporate chat room in my Website (Currently still on WAMP). What chat software is good? Is it easy to write mine from the scratch? Any tutorials if that is possible? Thanks Guys!

Member Avatar for Stefano Mtangoo
0
123
Member Avatar for nagatron

Hallo to all, I have a problem on how to test an existing data from the database. . .I have this registration form which displays an error if the user inputs a username and emai address which already exist in the database. Please help me, I can't find any related …

Member Avatar for nagatron
0
91

The End.