![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
Quick php question.
I need to echo the following from a form post but make it echo the variable in lowercase.
This does upper case: <?php echo $_POST["cat1"]; ?> What does lower case? Thanks! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
<&(©¿©)&>
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
|
<?php echo strtolower($_POST["cat1"]); ?>
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000 Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager ![]() Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
i love you
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
MFBA
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
|
www.php.net and download the help .chm
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Dec 2003
Location: City... City of Satan
Posts: 2,651
|
<?=strtolower($_POST["cat1"])?>
I like that better. the <?php echo strtolower($_POST["cat1"]); ?> for one line in between html looks look ugly. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
|
My way is much better:
Code:
<?php $exp = explode($_POST["cat1"]); $str = ""; for($i=0;$i<count($exp);$i++) { $str = $str . strtolower($exp[$i]); } ?> <?=echo $str?>
__________________
Your post count means nothing. |
![]() |
![]() ![]() ![]() ![]() ![]() |