- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
19 Posted Topics
Re: json data is not correct. it should be data: "{'ntid': "+$('#Eid').val()+"}", or data : {'ntid' : $('#Eid').val()}, dependent on your server side functionality | |
Re: [CODE] use strict; [/CODE] helps to fix all typo in the src and keep your time. in development mode and debug mode it is good to use it always. live app can have it disabled for performance | |
Re: In your case I would like to investigate created frameworks like onphp or phoebius. There are enough doc to get it clear. [url]http://www.onphp.org/doxy/trunk/[/url] [url]http://phoebius.org/[/url] | |
| |
Re: You need dynamic create iframe and put required data to this created iframe, then print this iframe. it is flexible way and allows you modify printable page as you need | |
Re: If you have modified browser security to open local host pdf file then you can load it to iframe and call window.print(). if browser has installed pdf plug-in then everything will work good. If your browser does not have modified security then you can load pdf file from server only … | |
Re: I am confused why you make client side validation. It can be skipped too simple and incorrect data will be submitted to server. May be read my article about validation issue. it is PHP based but I use the same in .Net applications as well. Described way can be implemented … | |
Re: [QUOTE=Izzy123;1190343]Anyone know how do I use javascript to limit the numeric amount enetered in a text box less than 1000?[/QUOTE] check is it number or not with isNaN and then convert to int with parseInt. now you can compare it with any number | |
Re: May be better to use some free javascript toolkit to study how it works and faster get result like : Prototype or jQuery or Mootols or Dojo | |
Re: hm.... I do not see any problem to get max number from array. Usually I use following function [CODE] Array.prototype.max=function() { if (this.length == 0) return {'index':-1}; var maxIndex = 0; for (var i = 1; i<this.length; i++) if (this[i]>this[maxIndex]) maxIndex = i; return {'index':maxIndex, 'value':this[maxIndex]}; } [/CODE] It returns … | |
Re: [QUOTE=phpDave;1178510]Hi everyone, I am trying to validate a user registration form. User must enter letters and/or letters only. [CODE]//check username $_POST['user_name'] = trim($_POST['user_name']); $checkChar ='/^[a-zA-Z0-9]+$/'; if (!preg_match($checkChar, ($_POST['user_name']))); { $error['char'] = 'Username must contain letters or numbers only'; }[/CODE] When I submit the error message keeps coming up when it … | |
Re: [QUOTE=suri mariabell;1178771]How can I assign a user can only login to a web application via a particular valid client PC? If I have 20 clients, I want to restrict the PC no.1 for a user A to login, PC no.2 for a user B login and they cannot login to … | |
Re: It is not good to use $_POST value directly in the sql query. at least need prevent some sql injections... But if you really need it as is then you lost one ' between brackets ]) or use like this $ql="INSERT INTO stud (name) VALUES ('".$_POST['sname1']".')"; Best Vitana [url]http://vitana-group.com/[/url] | |
Re: Everything looks correct. What does not work in IE:? 1. IE does not get "abc" and db is not updated 2. "abc" has incorrect value 3. redirect to $updateGoTo does not work first and second you can check with debug echo, third you can check with some http sniffer | |
Re: I have checked latest code, it works but unfortunately "What is your NAme ?" I get even after entering the name. May be better to use following code [CODE] <?php $flag = false; $your_name = @$_POST['your_name']; if (empty($your_name)) $your_name = "(Not entered)"; else $flag = true; $uncle_name = @$_POST['uncle_name']; ?> … | |
Re: [QUOTE=bulgin;1173125]Is there a method in Linux to monitor a port for activity, then when found, execute a script? For example, when tftp port 69 is accessed, run a script that runs commands. thank you.[/QUOTE] You can use nmap (linux tool) to find opened ports and run required your script, or … | |
Re: this module provides simple xml functionality only. in your case I prefer to create recursive function to discover hashes in the $data because it takes few lines | |
Re: [QUOTE=lastlight;1174923]Ok nice to know. So how can I open a program on the client machine when a user opts to do so in the browser (In this case, by using check boxes and a submit button) ? This is running on a local network, so each client will be setup … | |
Re: I assume you need make it with apache (because make it in php is too easy): - need enable apache modules mod_rewrite and mod_proxy - need create required rules to modify url - need send modified url-s to apache proxy - need disable supporting external request by apache proxy if … |
The End.