Search found 7 matches

by johnali3n
Tue Nov 07, 2006 6:20 am
Forum: PHP - Code
Topic: Sending a DOS COPY command - Problem - Access Denied!
Replies: 1
Views: 591

Sending a DOS COPY command - Problem - Access Denied!

feyd | Please use , and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color] Hey all, ...
by johnali3n
Tue Mar 07, 2006 8:30 am
Forum: PHP - Code
Topic: Web Form - Text disappears after single quote on posting
Replies: 5
Views: 1058

This seemed to do the trick:-

$details = htmlspecialchars($HTTP_POST_VARS['details']);

then amended the query so it doesnt have an addslashes function.

Thanks for your help and hope this is of use to others!
by johnali3n
Tue Mar 07, 2006 7:45 am
Forum: PHP - Code
Topic: Web Form - Text disappears after single quote on posting
Replies: 5
Views: 1058

Hi, thanks for your help. I understand what you mean but I have the same problem in a different way:- $output = '<input type="hidden" value="'.$siteid.'" name="siteid"> <input type="hidden" value="'.$faultid.'" name="faultid"> <input type=&...
by johnali3n
Tue Mar 07, 2006 4:42 am
Forum: PHP - Code
Topic: Web Form - Text disappears after single quote on posting
Replies: 5
Views: 1058

Sorry, I think I know why but not sure how to solve it. I am verifying the data by displaying on screen and asking user to say yes or no to changes. If yes, the data is then posted in this way:- <input type='hidden' value='$details' name='details'> Obviously the single quotes are going to be an issu...
by johnali3n
Tue Mar 07, 2006 4:34 am
Forum: PHP - Code
Topic: Web Form - Text disappears after single quote on posting
Replies: 5
Views: 1058

Web Form - Text disappears after single quote on posting

Hi all, I wonder if someone can help. I am designing a web site that is going to be used as a fault log but need some help with posting. First off, in the php.ini file on the IIS server I have set:- magic_quotes_gpc = off magic_quotes_runtime = off magic_quotes_sybase = off I am using a standard web...
by johnali3n
Tue Jul 19, 2005 9:27 am
Forum: Regex
Topic: Using ereg to validate a price - EREG CHALLENGE
Replies: 2
Views: 5301

Excellent, thanks very much!!!!!!!!! :lol: :lol: 8O 8O
by johnali3n
Tue Jul 19, 2005 9:21 am
Forum: Regex
Topic: Using ereg to validate a price - EREG CHALLENGE
Replies: 2
Views: 5301

Using ereg to validate a price - EREG CHALLENGE

Hey all, I am trying to use ereg to validate a price. I am asking users to enter a price for a product in a text box - I do not want to allow anything but 0-9 and a period/full stop. Can anyone help me with the ereg syntax? I would of thought it would be something like:- (!ereg ("^[0-9].[0-9]$&...