Jump to content

simora

Members
  • Posts

    13
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

simora's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi requinix: That's what I thought also, but I've tried: $filename = ('./Collection_Posts/'.$file, base64_decode($uri)); Also $filename = file_put_contents('./Collection_Posts/'.$file, base64_decode($uri)); Also $filename = ./Collection_Posts/$file; Trying to echo the filename, I'm not getting anything.
  2. I am trying to get the actual filename so that I can attach it to an email. I tried echo $file; but its not giving me anything. Just a blank page. Here's the code that I' working with: $file = date('M-d-Y H:i A'). '.png'; $uri = substr($data,strpos($data,",")+1); file_put_contents('./Collection_Posts/'.$file, base64_decode($uri)); echo $file; exit;
  3. Thanks haku: Also found this after you pointed me in the Javascript match direction: http://www.devarticles.com/c/a/Javascript/Regular-expressions-in-Javascript/6/
  4. My mistake. I want to evaluate if f IsNumeric NOT x i.e If X ==1 & f IsNumeric Sorry about that.
  5. Xaotique: THANKS ! I got this to work like this: <script language="javascript"> function showAlert() { var f =document.form1.word.value; var x = f.substring(0,1); if(x > 1){ alert(x +" is greater than 1 "); window.location = "http://www.basy.com/"; } } </script> Now I'm Having a problem evaluating these 2 conditions if(x > 1) || (!IsNumeric(x)) I need x to be 1 and Numeric. If there's a letter in the first position, this will catch it. RE: Why not just set the max length of the input field to 1 .The field is used for multiple things. The # 1 at the beginning is my way to filter specific people.
  6. I'm trying to pass a form field value to substring() to evaluate it. my form field is like this; Word here : <input type="text" name="word" value = " " onmouseout="functionones()"> I need to make sure that "word" is numeric only and that it begins with the number 1 If NOT, I want to show an alert and send them to another location. I tried this, but its not working. <script type="text/javascript"> function functionones() var f =(document.form1.word.value): var x = f.substring(0,1); { if (var x >1) alert("Your word data is wrong"); window.location = 'http://www.basy.biz'; } //--> </script> If I hard code a value of "123343466" into var f and do a doc.write, I'll get 1 Appreciate your help.
  7. Thanks a million. I'm not sure where those special " " came from. I had to look at them in Ms Word @ 400% That was the problem. Now it works.
  8. RE: strange quote characters. Like What? I've tried single quotes etc.. Can you help?
  9. Can anyone please tell me why this is not re-directing? I have checked the 'sviews' with other code and it is set correctly. It should give either its NOT OK or redirect. Its doing neither. <?php if(isset($_SESSION['sviews'])) { header(“Location: http://www.AOL.com”); } else { echo " its NOT OK"; } ?> Code or suggestions welcome. Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.