39,320 Topics

Member Avatar for
Member Avatar for saadi06

Hi, I am using [CODE]ereg [/CODE] for validations of field and I want to allow some fields that are optional but ereg does not allow me to validate space or empty field.My code for validation is [CODE]while(list($var,$val)=each($_POST)){ if(!ereg($var,$admin_data)){ if(ereg($reki[$var],$val)) {$class="good";}//this condition is checking the values of all the fields but …

Member Avatar for saadi06
0
105
Member Avatar for Dragonbaki

Hi experts., I need your kind help on about how to handle Naviswork ActiveX control integrated with HTML, PHP and Javascript. I need to display a Naviswork viewer in my website. For that, I created a Browse button to select Naviswork file. After selecting the file, the file path has …

Member Avatar for pritaeas
0
151
Member Avatar for ibakir

i would like to write a function if that user id who do a post equal the same user id who logged in then he can after a while edit again his own post , then if its match go to the update page to make the edit ; [url]http://www.dalilack.com/marketFormUpdate.php?Id=11[/url] …

0
176
Member Avatar for extemer

hello guys i have designed a student form which have 3tabs e.g General,parental info,Miscellaneous and i want to add breadcrumbs to that can some suggest me how to do i being trying it hard but not getting it right

Member Avatar for iamthwee
0
58
Member Avatar for 7kemZmani

Hello, I'm using php code to retrieving an array from database and place the result into checkboxes but after the last checkbox input there is text input (hidden by default) and the last check box name is 'other'. I want to make the text in visible if 'other' is checked …

Member Avatar for divyakrishnan
0
193
Member Avatar for Dragonbaki

Hi experts., Can anybody know how to select and upload multiple files using javascript [ with php too ]..? I dont want to use silverlight or flash..! I just need to do it in simple way.. Please help me..! Thanks.,

Member Avatar for karthik_ppts
0
175
Member Avatar for karthik_ppts

Hi Frendz, I'm using the following code for generating the alert message. [CODE=php]echo '<script>alert("Your project has timed out. Contact your project Manager")</script>';[/CODE] Its working fine in my local server. But in online server its not working. whats going wrong with this?

Member Avatar for P0lT10n
0
174
Member Avatar for bigwhiteegg

I'm new to web develop, just started coding my own page I have the need for hiding the user's ip so I found the following code just trying to figure out how to use it on my website what will be showing on the screen is a hyperlink like this …

0
81
Member Avatar for blocker25

hey guys.!! i wonder how confugure ioncube in joomla.... can anyone help me? thanks...

0
37
Member Avatar for Gerbiler

Recently I have been working with Mysql and PhpMyAdmin a lot on Ubuntu, and I have stumbled across a very annoying error, or set of errors. I keep on getting a bunch of random loosely related error messages. These are the errors I get. When I try to log in …

Member Avatar for griswolf
0
534
Member Avatar for meleo

After spending abut 8 hours frustrated (and growing very grumpy) :) I found a solution and wanted to share. On my site, I use cPanel. I found a couple of posts that saved me some serious headaches so I decided to share them here to hopefully help someone else. I …

Member Avatar for meleo
1
120
Member Avatar for aldm

Hi, I need forum in my site. It shouln't be a big forum, it's a student site. Now, which php forum is best to use - I'm using phpbb3. Is there any better solution, easy to moderate and administrate and which takes less space on server? Thanks in advance, Amer

Member Avatar for IIM
0
82
Member Avatar for minitauros

Because using the <base> tag is giving me some problems lately, I'm curious about what the best solution is to use together with mod rewrite. I use mod rewrite a lot, and the <base> tag helps me to keep the links to my css files, for example, working. I link …

Member Avatar for minitauros
0
121
Member Avatar for smartness

[QUOTE]Database error in vBulletin 3.6.8: Invalid SQL: UPDATE session SET newposts = newposts+1 WHERE NOT ISNULL(newposts); MySQL Error : Unknown column 'newposts' in 'where clause' Error Number : 1054 Date : Saturday, September 22nd 2007 @ 11:19:12 AM Script : [url]http://gjilaniforum.altervista.org/forumi/newthread.php?do=postthread&f=91[/url] Referrer : [url]http://gjilaniforum.altervista.org/forumi/newthread.php?do=newthread&f=91[/url] IP Address : 82.114.72.186 Username : …

Member Avatar for Miklo_jan
0
235
Member Avatar for Stefano Mtangoo

have planned to write my own light weight MVC for PHP, that will be used as base for my sites I develop. I have no problem with PHP, OOP, et al. I have trouble on how to actually load Models In controllers and use them amd loading Controller values into …

Member Avatar for Stefano Mtangoo
0
393
Member Avatar for roachae

My code is below. Lines that are not indented are debug lines or things I've been trying to get this to work. Basically, the 'filename' hidden input's value is not setting so on submit, the code that checks the $_POST values is returning an error because 'filename' is missing. This …

Member Avatar for roachae
0
117
Member Avatar for emily-bcot

I'm working on the Help system. In the Help system, there is the WYSIWYG Editor to allow users to input content. However, the content includes the text and image. My question is How to store the content of WYSIWYG Editor into database? I really appreciate all your help. Thanks!

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for AngelicOne

I'm having a hard time to send a message to a certain e-mail account. I read that I should setup the PHP.INI at line where SMTP is located, which the default value is localhost. If the SMTP is to the computer itself which is 127.0.0.1 or localhost then the mail …

Member Avatar for NettSite
0
136
Member Avatar for ThomoTechnician

Hi. Been trying to make a (basic) social networking site for my school but have had problems with users being able to add themselves as friends. Seems stupid but it is annoying! I have tried using the code: [CODE]<?php if ($_SESSION['MM_Username'] == '****') { ?>[/CODE] But it wont load dynamic …

Member Avatar for ibakir
0
397
Member Avatar for jacob21

Everthing is working fine but i am not getting emails on my id. Need help [CODE]<?php $to = "sikka.sourav@gmail.com"; $subject = "Contact Form"; // Include extra form fields and/or submitter data? // false = do not include $extra = array( "form_subject" => true, "form_cc" => false, "ip" => true, "user_agent" …

Member Avatar for Shanti C
0
206
Member Avatar for Danny159

Hey, I have the following script... [CODE]if(!opendir($image_dir)){ echo info_msg("Ooops... This Album contains no images"); }else{ /* step one: read directory, make array of files */ if ($handle = opendir($image_dir)) { while (false !== ($file = readdir($handle))) { if ($file != '.' && $file != '..' && preg_match("/t/",$file) && $file != …

Member Avatar for pritaeas
0
205
Member Avatar for canadaussie12

Hello, I am very new to PHP and hope that someone here might be able to help with a challenge I cannot solve (yet). I have created a simple hmtl form and corresponding php file which send some information to the designated email. However, I am not sure how to …

Member Avatar for canadaussie12
0
166
Member Avatar for Aardwolf

How would I do this in 1 line [code] $name = $firstName + " " + $lastName; //output: 0 [/code] the problem is what I think it is, is that its trying to add like mathematics. whilst I want the '+ " " +' to become a space in between …

Member Avatar for karthik_ppts
0
129
Member Avatar for srdva59

hi, i looking for a class that can handle with winrar and zip files i have found a lot of resource for zip but none for winrar... any one know something that work in both of the type files? thanks :)

Member Avatar for srdva59
0
1K
Member Avatar for Espenij

Hi, I have a question. I want my page to register the previus page the visitor comes from. If my visitor comes from google, i want the url to add this in the Url. Is this possible in php5? I had this in php4, men it didnt work when it …

Member Avatar for Espenij
0
86
Member Avatar for atfOnly

As far as i know this is no way to use array_count_values for multidimensional array. So, any of you guys know how to deal with this? I have 2D array like this.. $arr=array([0]=>array([arr1]=>A[arr2]=>1) [1]=>array([arr1]=>B[arr2]=>5) [2]=>array([arr1]=>A[arr2]=>5) etc... ) i want to obtain combination of arr1-arr2 and its count(just like in 1D …

Member Avatar for divyakrishnan
0
88
Member Avatar for chaychie

Hi, I would like to display my database data in text fields form. I would like to have all the text fields to be locked (read only), so I added readonly attribute into the text fields. Moreover, I would like to add a button "EDIT" at each row, so that …

Member Avatar for divyakrishnan
0
1K
Member Avatar for srdva59

hi how can i creat a ocx file and call to install in a browser? thanks for your help :)

Member Avatar for Wraithmanilian
0
127
Member Avatar for klemme

I have this code, which creates the pages, taken from the DB: [CODE] function subject_navigation($connection){ $sqlCommand = "SELECT id, linknavn, pos FROM subjects ORDER BY pos ASC"; $query = mysqli_query($connection, $sqlCommand) or die (mysqli_error()); while ($row = mysqli_fetch_array($query)) { $sid = $row['id']; $linklabel = $row['linknavn']; echo '<li><a href="index.php?sid=' . $sid …

Member Avatar for klemme
0
101
Member Avatar for varoluscu_prens

Hi there; I've received a irritant problem in my php code. Here is "index.html": There are some javascript functions defined in the "head" tag. [CODE] <form autocomplete="off" action="result.php" method="post"> <p> <label>Name:</label> <input type="text" id="name" /> </p> <p> <label>Nachname: </label> <input type="text" id="surname" /> </p> <p> <label>Abteilung</label> <input type="text" id="department" /> …

Member Avatar for varoluscu_prens
0
183

The End.