nadeemshafi9
Members-
Posts
1,245 -
Joined
-
Last visited
About nadeemshafi9
- Birthday 01/16/1985
Contact Methods
-
MSN
nadeemshafi9@hotmail.com
Profile Information
-
Gender
Male
-
Location
UK
nadeemshafi9's Achievements
Advanced Member (4/5)
0
Reputation
-
[SOLVED] stating multiple replacments preg_replace
nadeemshafi9 replied to nadeemshafi9's topic in Regex Help
dude thanks thats realy good -
[SOLVED] stating multiple replacments preg_replace
nadeemshafi9 replied to nadeemshafi9's topic in Regex Help
Well, I think it boils down to habit more than anything else. Sticking with ereg relfex habits will come back to haunt you sooner or later (as sooner or later [most likely the latter], hosting providers will ditch PHP 5.x in favor of 6, once 5.x is old enough and falls out of favor [much like what's happening with PHP 4]). By future proofing your code now (getting into PCRE habits), you won't have to worry about the day your code breaks in the event your hosting provider switches to 6 and doesn't happen to include POSIX's extention. Or rephrased another way, sticking with PCRE, you can't go wrong.. but sticking with POSIX, something can go wrong down the line. Ultimately, it's your call.. just trying to encourage going the safer route is all. most of the systems i developed are large scale so they are sitting on in house custom built servers made just for them and they have there personal interface to the internet eg there own lines, they will be kept as legacy systems and code. i completely understand what your saying thogh, good practice is good practice. -
[SOLVED] stating multiple replacments preg_replace
nadeemshafi9 replied to nadeemshafi9's topic in Regex Help
yes i know that and i am trying my best to use preg but by reflex i use ereg, the thing is that i dont think the app will port into php 6 anyways so whats the point, but yes i do use preg instead now. -
try $name = $_SESSION['post']['name']; $content=<<<EOF <div id="main-container"> <div id="form-container"> <h1>Contact Form</h1> <h2>Why not drop us a line and we will get back to you!</h2> <form id="contact-form" name="contact-form" method="post" action="submit.php"> <table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr> <td width="15%"><label for="name">Name</label></td> <td width="70%"><input type="text" class="validate[required,custom[onlyLetter]]" name="name" id="name" value="$name" /></td> OR <td width="70%"><input type="text" class="validate[required,custom[onlyLetter]]" name="name" id="name" value="{$name}" /></td> <td width="15%" id="errOffset"> </td> </tr> <tr> <td><label for="email">Email</label></td> <td><input type="text" class="validate[required,custom[email]]" name="email" id="email" value="<?=$_SESSION['post']['email']?>" /></td> <td> </td>
-
its my thread now hahahahah
-
why not ? scuuuurd ? $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } }); http://docs.jquery.com/Ajax/jQuery.ajax#options
-
http://docs.jquery.com/Ajax/jQuery.ajax#options $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } });
-
Advanced JavaScript with Internet Explorer: Retrieving Networking Configuration Information - How to retrieve MAC address and other extended network information using JavaScript (Page 2 of 6 ) Now, let us try to extend the previous sample by showing further information about the network adapters. The entire code for the sample is as follows: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title></title> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"> <meta name="vs_targetSchema" content="http://schemas. microsoft.com/intellisense/ie5"> <script id="clientEventHandlersJS" language="javascript"> <!-- function Button1_onclick() { var locator = new ActiveXObject "WbemScripting.SWbemLocator"); var service = locator.ConnectServer("."); var properties = service.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration"); var e = new Enumerator (properties); document.write("<table border=1>"); dispHeading(); for (;!e.atEnd();e.moveNext ()) { var p = e.item (); document.write("<tr>"); document.write("<td>" + p.Caption + "</td>"); document.write("<td>" + p.IPFilterSecurityEnabled + "</td>"); document.write("<td>" + p.IPPortSecurityEnabled + "</td>"); document.write("<td>" + p.IPXAddress + "</td>"); document.write("<td>" + p.IPXEnabled + "</td>"); document.write("<td>" + p.IPXNetworkNumber + "</td>"); document.write("<td>" + p.MACAddress + "</td>"); document.write("<td>" + p.WINSPrimaryServer + "</td>"); document.write("<td>" + p.WINSSecondaryServer + "</td>"); document.write("</tr>"); } document.write("</table>"); } function dispHeading() { document.write("<thead>"); document.write("<td>Caption</td>"); document.write("<td>IPFilterSecurityEnabled</td>"); document.write("<td>IPPortSecurityEnabled</td>"); document.write("<td>IPXAddress</td>"); document.write("<td>IPXEnabled</td>"); document.write("<td>IPXNetworkNumber</td>"); document.write("<td>MACAddress</td>"); document.write("<td>WINSPrimaryServer</td>"); document.write("<td>WINSSecondaryServer</td>"); document.write("</thead>"); } //--> </script> </head> <body> <INPUT id="Button1" type="button" value="Button" name="Button1" language="javascript" onclick="return Button1_onclick()"> </body> </html>
-
var strComputer = "."; var objWMIService = GetObject("winmgmts:\\\\" + strComputer + "\\root\\cimv2"); var e = new Enumerator(objWMIService.ExecQuery("Select * from Win32_NetworkAdapter","WQL",48)); for (;!e.atEnd();e.moveNext()) { objItem = e.item(); WScript.Echo ("MACAddress: " + objItem.MACAddress) }
-
if javascript can some how capture it or is passed it, you may be able to ajax it over
-
use jquery please
-
$to = $email.", mattpooch@mysite.com";
-
[SOLVED] password is not being accepted using SHA
nadeemshafi9 replied to fiveninesixtwosix's topic in PHP Coding Help
are u chating to me ? -
[SOLVED] password is not being accepted using SHA
nadeemshafi9 replied to fiveninesixtwosix's topic in PHP Coding Help
dont use sha1 it does not check against passwords, use crypt its better and more suited