Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Simple PHP Validation script
Name: rhawkes241 Date: May 30, 2006 at 03:59:24 Pacific OS: Windows xp CPU/Ram: Athlon XP 1700, 512SD
Comment:
Hi,
I'm still new to PHP (I've just got over the excitment of how the include statement works, its excellent it really is).
Anyway, I need to create a PHP script. I have an input from a user (for arguments sake called $inputstring). Once the varible is in $inputstring, I need the script to decide whether its a numeric entry (e.g. 54) or whether its something else like text. If it's a number then I want it to stay in the varible $inputstring, and then it'll run some code I create, if its anything else like text or symbols I want $inputstring set to 1.
I know this is probably easy to do, however I am new to PHP. Also if any of you could recomend good (interesting) books for training or websites that would be handy.
Summary: hey. My questions is that can a php uploading script[like the one shown below] be used to upload to remote [different] servers, rather than to the one it is being hosted on.. Thank you <?php //vvvv...
Summary: Well, I've got the entire site transferred to a table, everything staying in one place, and it looks 100x better. THANKS!! Now I'm trying to get this simple PHP include script to work...but it's not....