|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
RE: No Spaces needed?
why dont you just do it like:
name="" . $i . "calc_length)" think that worx |
|
#3
|
|||
|
|||
|
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? |
|
#4
|
|||
|
|||
|
RE: No Spaces needed?
That Worked! THANKS Thanks THANKS Thanks
|
|
#5
|
|||
|
|||
|
RE: No Spaces needed?
what are friends for ...
|
|
#6
|
|||
|
|||
|
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 :-)
|
|
#7
|
|||
|
|||
|
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)" |
|
#8
|
|||
|
|||
|
RE: No Spaces needed?
thats interesting. it would have saved me a few troubles in the past. thx
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > No Spaces needed? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|