Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~13.2K People Reached
Favorite Tags

49 Posted Topics

Member Avatar for shadiadiph

Sorry I have been searching for hours and hours now been looking for a way to gzip a file in javascript client side so i can then upload it and unzip it server side. You may ask why not just zip it normally? This is for my users and most …

Member Avatar for dcdruck
0
1K
Member Avatar for shadiadiph

Hi can anyone tell me how I can write data to the main www.example.com from mobile.example.com i keep getting a http write error when i try to mkdir or a file on the main domain from the subdomain??

Member Avatar for shadiadiph
0
119
Member Avatar for shadiadiph

Does anyone know of a function that can check all or uncheck all checkboxes with one click barring in mind i have multiple forms on one page. function checkAll(formName, status){ for (i = 0; i < formName.length; i++) formName[i].checked = status.checked? true:false } I have tried the above it works …

Member Avatar for shadiadiph
0
126
Member Avatar for shadiadiph

I have this menu which works fine in firefox etc but just will not work in I.E 7 can anyone tell me why? [code] <html> <head> <title></title> <style type="text/css"> #mainmenu{ width: auto; height: 30px; } #mainmenu{ margin: 0px; padding: 0px; z-index: 1; } #mainmenu li{ float:left; position:relative; width: 140px; border: …

Member Avatar for jayesh123
0
272
Member Avatar for John23

[code] <? session_start(); error_reporting(7); require("connection.php"); $query = "SELECT picturerow,picturetyperow FROM tbladvertdetails"; $result = mysql_query($query); if (mysql_num_rows($result) ==1) { $data = mysql_result($result,0,"picturerow"); $type = mysql_result($result,0,"picturetyperow"); Header( "Content-type: $type" ); print $data; } ?> [/code] must have the file saved also the type of file extension in the database in two seperate …

Member Avatar for veedeoo
0
154
Member Avatar for shadiadiph

I have a div that the user can edit problem is when I select the div the initial cursor is always the same height as the div??? Also if i enter no text and click on it i have to leave the div and click before I can enter the …

Member Avatar for shadiadiph
0
370
Member Avatar for shadiadiph

mAYBE I am a bit rust but my following seems to display ok in firefox chrome but doesn't even work in IE maybe something simple i am missing as I am very rusty. [code] #topholder { position: absolute; top: 0px; left: 0px; width: 100%; height: 120px; display:block; z-index:0; background: transparent; …

Member Avatar for shadiadiph
0
108
Member Avatar for shadiadiph

is there any easy way to set a cursor to a div so that you can type in a div onclick?

Member Avatar for lambing
0
678
Member Avatar for shadiadiph

How can I change the current text style at the current position of the cursor without chnaging the whole div id's font style? [code] document.getElementById('message').style.fontWeight='bold'; [/code] This changes all the previous text styling in the textarea i have been trying to find a way aboutit but can't seem to find …

Member Avatar for shadiadiph
0
106
Member Avatar for shadiadiph

It's not really a big problem but my code keeps spitting out this error on mozilla when the auto fill boxs pops up on a form feild does anyone know a fix for it? [code] Error: uncaught exception: [Exception... "Cannot modify properties of a WrappedNative" nsresult: "0x80570034 (NS_ERROR_XPC_CANT_MODIFY_PROP_ON_WN)" location: "JS …

0
63
Member Avatar for shadiadiph

I have a radion box that has the values private public and friends but i cant't seem to get it to reset to the default value using javascript?? [code] document.getElementById('emailsetting').checked='private'; [/code]

Member Avatar for kainil
0
174
Member Avatar for shadiadiph

Not sure why there is obviously something wrong with this but my two of my divs username and #passwordrow are turning out twice the length of the parent #loginbox don't worry ablut the wierd backgroound and text colours I did that so I can see how they are acting, the …

Member Avatar for macgurl70
0
103
Member Avatar for shadiadiph

Trying to get my one of my divs when clicked to call a function but it doesn't seem to be working??? I just noticed that only one solid pixel in the div border which i will eventually set to 0px calls the function but I want it so the whole …

Member Avatar for shadiadiph
0
92
Member Avatar for shadiadiph

I thought this would be simple I am trying tochange the opacity using style. but keeps throwing an error [code] document.getElementById('overlay').style.background='#000'; document.getElementById('overlay').style.opacity='40'; document.getElementById('overlay').style.filter='alpha(opacity=40)'; [/code] keeps thowing the error in parsing value for 'filter' declaration dropped in my css i have [code] #overlay{ width: 100%; height: 100%; background: transparent; /* for …

Member Avatar for shadiadiph
0
118
Member Avatar for shadiadiph

Sorry another silly issue with javascript but I am getting there. Can someone please explain how I should write this thankd. I tried stoping and restarting the string 'hello' +var 'more text'; maybe I am just too tired. The variables are already defined. [code] document.getElementById('welcomeone').innerHTML='+firstnameval you have successfully created your …

Member Avatar for shadiadiph
0
111
Member Avatar for sugikrish

I strongly recommend against storing images in a database store the file name with extension ie picture.gif and save the actual picture to a directory on the server I would resize it first using php, then it is easy to call. Saved images in a database it takes up alot …

Member Avatar for sugikrish
0
340
Member Avatar for mugojoe
Member Avatar for shadiadiph

Still trying to get my head around some simple javascript issues the following works in php but not in javascript can someone point me in the right direction obviously my code is wrong. [code] if((dobyear==false) && (dobmonth==false) && (dobday==true)) { return 'noyearmonth'; } [/code] thanks

Member Avatar for fxm
0
136
Member Avatar for BTW8892

Something along these lines should work [code] $num_queries = count($_POST['field1']); for($i=0;$i<$num_queries;$i++) { $field1 = mysql_real_escape_string($_POST['field1'][$i]); $field2 = mysql_real_escape_string($_POST['field2'][$i]); $field3 = mysql_real_escape_string($_POST['field3'][$i]); $field4 = mysql_real_escape_string($_POST['field4'][$i]); $field5 = mysql_real_escape_string($_POST['field5'][$i]); $sql ="INSERT INTO `tblname` (`col1`, `col2` `col3`, `col4`, `col5`) values ('$field1', '$field2', '$field3', '$field4', '$field5')"; $resultsql = mysql_query($sql); } //Your form fields on …

Member Avatar for plantf7**344
0
137
Member Avatar for shadiadiph

Sorry for another regex post but i have been trying to get a regex to work to check for unwanted characters in a string like @#?! I have tried [code] var cityreg=/^[^$%@!]+$/; [/code] but it doesn't seem to work?

Member Avatar for shadiadiph
0
2K
Member Avatar for shadiadiph

Hi I have been playing with this regex for a few hours now I want to make it so it accepts commas also any ideas? [code] var regname=/^[a-zA-Z\.\-'\s]*$/; [/code] At the moment it works with A-z and - . ' but can't seem to figure out how to include commas …

Member Avatar for shadiadiph
0
255
Member Avatar for shadiadiph

Hi sorry I am very new to AJAX and javascript probably a silly question but where can I put document.getElementById("loading").innerHTML='loading...'; in the following so it appears when it is loading and disappears when it is loaded? function getstate(){ var xmlHttp; try{ xmlHttp=new XMLHttpRequest();// Firefox, Opera 8.0+, Safari }catch (e){ try{ …

Member Avatar for shadiadiph
0
129
Member Avatar for shadiadiph

Hi I have never really bothered with javascript before but i am having alot of problems with a ajax php form my php code returns [code] if ($states==false) { $result = 'nostates'; $result = trim($result); return $result; exit; } [/code] And my javascript alert returns nostates but always executes the …

Member Avatar for shadiadiph
0
112
Member Avatar for shadiadiph

Sorry i have'nt got a clue what i am doing i just bought a webserver and and can't get it to work. I have a dynamic dns set up with my static ip address. In the nat on my roter i have set up name1 as port 80 with my …

Member Avatar for DimaYasny
0
131
Member Avatar for shadiadiph

I am having problems with a data entry issue i have a field in my database which is called headline it is set to varchar 255 when i insert for example something with for eample. [code] The 'dogs' are very big. [/code] the code is sent by normal $headline=$_POST["headline"]; then …

Member Avatar for uesuva
0
299
Member Avatar for shadiadiph

I have the following problem is that regardless of the error it only seens to return the value of $error==4?? there are multiple files being uploaded but i only want to retrn 1 message error 4 if no files have been uploaded and error 2 if a file is more …

Member Avatar for Xlphos
0
308
Member Avatar for shadiadiph

I am having problems with this form it has two submit options a button and an onchange instance the onchange just will not work can any one tell me why? my doc type is [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> [/code] the form …

Member Avatar for shadiadiph
0
95
Member Avatar for shadiadiph

how do i find out the row size in kb? is it possible to automatically insert the size I have a mail table and have the field is there a way of automatically creating the value on insert by resetting the values of the field?? [code]`messagesize` int(255) NOT NULL default …

Member Avatar for shadiadiph
0
136
Member Avatar for shadiadiph

this seems to work but the new window doesn't resize and none of the attributes are working? [code] <form name="login" action="secure/checkuser.php" method="post" target="mywindow" onsubmit="window.open('mywindow','width=400,height=300,toolbar=no,location=no,directories=no,status=no,menubar=no,titlebar=no,scrollbars=yes,copyhistory=yes,resizable=no')"> [/code]

Member Avatar for leroi green
0
276
Member Avatar for manzoor1

seems to be bit all over the place try this [code] $sql="SELECT * FROM `question`"; $quer=mysql_query($sql); while($row=mysql_fetch_array($quer)) { echo ".$row[uniqueid]." ".$row[stem]."<br>"; $qid= $row[uniqueid]; } [/code]

Member Avatar for msikwal
0
118
Member Avatar for rtipton

have you tried assigning variables to each $_POST its easier to track also GetSQLValueString($_POST['Prep_ID'], "int")); //why do you have 2 )) and one (??? I would approach it like this [code] $pid = ($_POST['Prep_ID']); in the update where Prep_ID='$pid' [/code] also i think you need to put the update after …

Member Avatar for shadiadiph
0
97
Member Avatar for shadiadiph

can you include arrays[] in header urls? I have the following but it doesn't work so I am thinking it might not be possible. [code] $name = strtolower($_POST["name"]); $name = stripslashes(ucwords($name)); $email = strtolower($_POST["email"]); $emailx ="/^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$/"; $alphaspace ="/^[a-zA-Z]+((['\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*$/"; if ($name=="") { $error[] ="Name is a required field please …

Member Avatar for shadiadiph
0
130
Member Avatar for shadiadiph

does anyone know of any good resources for php regex for form validation. I am looking for good regex for name: (including -.' and no spaces in the first space no doubles of ..''-- phone: again no spaces at the start allowing + and - alpha: only lowercase letters no …

Member Avatar for shadiadiph
0
112
Member Avatar for theighost

you could try this [code] <? error_reporting(7); $subject = $_POST['subject']; $firstname = $_POST["firstname"]; $lastname = $_POST["lastname"]; $email = $_POST['email']; $country = $_POST["country"]; $telephone = $_POST["telephone"]; $message = $_POST['message']; header("Location: thankyou.php"); $to = "$email"; $subject = "$firstname Confirmation Of Your Inquiry At WEBSITE NAME"; $MsgHeader = "From: WEBSITE NAME <noreply@website.com>\n"; $MsgHeader …

Member Avatar for theighost
0
108
Member Avatar for chicago1985

are you uploading to a folder tricky question to answer you could try making a loop to upload one at time make the submit page call to itself until the files value return a false value then exit but this will still take the same amount of time i would …

Member Avatar for shadiadiph
0
116
Member Avatar for shadiadiph

Hi I don't get this it works fine but any file i upload that is over 300kb doesn't get emailed or saved to the server but if i upload two files for example 260kb 290kb they both upload and are both saved to the server. here is what I am …

Member Avatar for shadiadiph
0
96
Member Avatar for shadiadiph

Hi I am having a problem can't seem to get my script working it was working fine with just one file before without the for and $x statements I have added can anyone see why it isn't working please ? html [code] <form name="iapply3" method="post" action="ionline4.php"> <input type="hidden" name="MAX_FILE_SIZE" value="300000" …

Member Avatar for shadiadiph
0
164
Member Avatar for shadiadiph

Is there anywhere I can find a list of dangerous MIME types I have tried Yahoo and Google not much on there?

Member Avatar for uncle_smith
0
60
Member Avatar for shadiadiph

i have got this done so far but it still isn't working properly its really doing my head in it sends the message fine subject file attachment but cuts the html message off halfway down and doesn't send the disclaimer if i change $message which is being passed to $messagemain …

Member Avatar for shadiadiph
0
109
Member Avatar for shadiadiph

I am having some more validation issues I have just added a search box to my page i did have it as xhtml strict and it was validating fine once i added this for it produced 50 errors then i changed the doc type to transitional now there are are …

Member Avatar for MidiMagic
0
103
Member Avatar for shadiadiph

Hi I have a form and I have a list of checkboxes I am trying to check 2 or all of them and get them to insert into one sql column in my database. When I select them it submits ok but in the cloumn on the database is storing …

Member Avatar for Yamthief
0
150
Member Avatar for Cobs

not totally live but 15 - 30 minutes delay you can get the have you can get free tickers from barchart.com

Member Avatar for Cobs
0
100
Member Avatar for shadiadiph

Hi I have a fetch all row data from my prices table so it displays all the records on one page using php. I want to insert all the row data into a new table but in one row. for example in my 1st table I have PriceID ProductCode Productame …

Member Avatar for shadiadiph
0
116
Member Avatar for napper_1337

have you tried chaging value="$logga in" to just simply value="logga in" with no $ sign

Member Avatar for shadiadiph
0
66
Member Avatar for shadiadiph

this has taken me hours and I am going nowhere slowly can anyone please help. I am tryig to get my table to display more than 1 news record everythig i have tried doesn't work or has runtime errors. Here is the basic code that worls and displays the one …

Member Avatar for peter_budo
0
118
Member Avatar for shadiadiph

My earlier post works ok now to display I have been working on how to transfer the info to be displayed on another page. I can't get it to work in theory i thik it should be working can anyone give me an idea what I have done wrong. on …

Member Avatar for nav33n
0
112
Member Avatar for shadiadiph

Sorry I have been raacking my brains 4 hours. Does anyone have any idea how to display negative and positive numbers in two colors e.g postive as green negative red?

Member Avatar for nav33n
0
41
Member Avatar for shadiadiph

hi i have a table i can write to it ok but i need to know the correct syntax to retrieve the last updated record i have been using something like this but it doesn't work.?? $sql = "select * from tblexdetails where intexchangeID='$tid'"; can anyone ive me any pointers …

Member Avatar for ultra vires
0
3K
Member Avatar for shadiadiph

I have a problem with my script i am trying to format a text area so that on the next page it displays it as it was entered in the textarea. my css style says this textarea { width:450px; padding:2px; font: normal 1em Verdana, sans-serif; border:1px solid #eee; height:100px; display:block; …

Member Avatar for silviuks
0
85

The End.