PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old August 11th, 2002, 10:33 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
No Spaces needed?

ok, the code in the loop looks like this
$form_block .="
<p><b><font color="#EF4B85">Piece #</font><font color="#FF0000">$i</font><font color="#EF4B85"><br>
Length <input type="text" name="$i calc_length)" size="3"> x Width

When you view the html I want it to be name="0calc_length) or name="1calc_length) or whereever it is in the loop but if I put $i close to calc_length it see's that as the who variable, If I put a space in between them it prints the space I dont want. Ho do I get it to print without the space?

Reply With Quote
  #2  
Old August 11th, 2002, 10:36 PM
chobo4ever chobo4ever is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Vienna, Austria
Posts: 63 chobo4ever User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: No Spaces needed?

why dont you just do it like:
name="" . $i . "calc_length)"

think that worx

Reply With Quote
  #3  
Old August 11th, 2002, 10:36 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: No Spaces needed?

Correction: Ignore First

ok, the code in the loop looks like this
$form_block .="
<p><b><font color="#EF4B85">Piece #</font><font color="#FF0000">$i</font><font color="#EF4B85"><br>
Length <input type="text" name="$i calc_length)" size="3"> x Width

When you view the html I want it to be name="0calc_length) or name="1calc_length) or whereever it is in the loop but if I put $i close to calc_length it see's that as the who variable, If I put a space in between them it prints the space I dont want. Ho do I get it to print without the space?

Reply With Quote
  #4  
Old August 11th, 2002, 10:38 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: No Spaces needed?

That Worked! THANKS Thanks THANKS Thanks

Reply With Quote
  #5  
Old August 11th, 2002, 10:38 PM
chobo4ever chobo4ever is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Vienna, Austria
Posts: 63 chobo4ever User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: No Spaces needed?

what are friends for ...

Reply With Quote
  #6  
Old August 11th, 2002, 10:43 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: No Spaces needed?

Your right, Thats what friends are for "I LOVE YOU MAN" except one problem, I am a lesbian trapped in a mans body :-)

Reply With Quote
  #7  
Old August 11th, 2002, 11:11 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: No Spaces needed?

Just as a cool trick to everyone out there...another way to accomplish the same thing would be:

name="{$i}calc_length)"


Reply With Quote
  #8  
Old August 11th, 2002, 11:23 PM
chobo4ever chobo4ever is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Vienna, Austria
Posts: 63 chobo4ever User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: No Spaces needed?

thats interesting. it would have saved me a few troubles in the past. thx

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > No Spaces needed?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway