| Coding Forum Problems with your code? Let's hear about it. |
06-16-2004, 07:59 AM
|
#1 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
Numeric String
the following code works for text:
[code:1:e5fd43ced3]$years = stripslashes($_POST['empyears']);[/code:1:e5fd43ced3]
but i need it to work for a numeric value that might have a decimal included... anyone know?
|
|
|
06-16-2004, 08:19 AM
|
#2 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
Jazee I know you know this! ;-)
|
|
|
06-16-2004, 09:21 AM
|
#3 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
What do you want it to do if there is a decimal? Round the number?
[code:1:5f708c62c2]$years = round($_POST['empyears']);[/code:1:5f708c62c2]
|
|
|
06-16-2004, 09:31 AM
|
#4 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
i've decided to do away with the $years b/c it's really not neccessary but i'm still getting an error... any ideas
http://www.uniqueemployment.com/beta/bioform.php is the page that triggers the script
http://www.uniqueemployment.com/beta/bioform-submit.txt is the code for the script...
test the script and you'll get this error [code:1:406dee2c58]Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /web/guide/uniqueemployment/wwwfp/beta/bioform-submit.php on line 7[/code:1:406dee2c58]
|
|
|
06-16-2004, 09:35 AM
|
#5 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
I get a 404 when I try to view the second link.
|
|
|
06-16-2004, 09:36 AM
|
#6 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
Quote:
|
Originally Posted by Jazzee
I get a 404 when I try to view the second link.
|
yea i changed bothlinks... sorry
|
|
|
06-16-2004, 09:52 AM
|
#7 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
show me line 6 and 7
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
06-16-2004, 09:56 AM
|
#9 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Change
$subject = "Bio Submission from <$name>;
to
$subject = "Bio Submission from $from";
|
|
|
06-16-2004, 09:59 AM
|
#10 (permalink)
|
|
Inactive
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
Latest Blog: None
|
worked... once again i virtually bow down to you Jazee... i keep making these small mistakes
|
|
|
06-16-2004, 10:06 AM
|
#11 (permalink)
|
|
Possible Terrorist
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
|
gah you stink jazzee.. you steal all the easy ones, yet when the hard ones come around your no where to be seen! haha
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
|
|
|
06-16-2004, 10:59 AM
|
#12 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
When someone wants a whole script written, I save it for you. 
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 11:33 PM.
© Copyright 2008 V7 Inc
|