Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-25-2004, 03:00 PM
spinal is offline spinal
[Insert Title]

Join Date: Jul 2003
Posts: 451

php problem

ok, fixed last problem, does anyone know how to type in php coding:

how to turn this into php coding?:

Code:
</td></tr><tr><td><b>Player Style</b></td><td>
<select name="color">
   <option value="">---Please Select---</option>
   <option value="Style type: "CQB"">CQB</option>
   <option value="Style type: "GUNNER"">GUNNER</option>
   <option value="Style type: "SNIPER"">SNIPER</option>
   <option value="Style Type: "MEDIC"">MEDIC</option>
   </select></b></td><td>
Code:
</tr><tr><td><b>Legal  Age "15":</b></td><td>
<input type="checkbox" name="Legal Age" value="Im the legal age">Yes<br>
   <input type="checkbox" name="Im not the legal age" value="No">NO<br>
__________________


Gaming Rig

AMD 64 3200+ venice skt 939
Akasa ak-913 Evo 33
Abit an8 fatal1ty nforce 4 ulutra
OCZ 1gb pc3200 dual channel Platinum
Ledtek geforce 6800ultra 256mb ddr3
Seagate barracuda 160gb
Plextor px-716a
on-board 5.1 sound
Logitech X-530 surround sound

Last edited by spinal; 01-25-2004 at 03:11 PM.
Reply With Quote
  #2  
Old 01-25-2004, 04:09 PM
Lakie is offline Lakie

Join Date: Mar 2002
Posts: 5,540

Echo("HTML LINE\n") but you need to escape any " by putting a \ before it (credit to p)
Reply With Quote
  #3  
Old 01-25-2004, 04:22 PM
spinal is offline spinal
[Insert Title]

Join Date: Jul 2003
Posts: 451

re:

i dont understand, i have never used php before?
__________________


Gaming Rig

AMD 64 3200+ venice skt 939
Akasa ak-913 Evo 33
Abit an8 fatal1ty nforce 4 ulutra
OCZ 1gb pc3200 dual channel Platinum
Ledtek geforce 6800ultra 256mb ddr3
Seagate barracuda 160gb
Plextor px-716a
on-board 5.1 sound
Logitech X-530 surround sound
Reply With Quote
  #4  
Old 01-25-2004, 04:25 PM
Lakie is offline Lakie

Join Date: Mar 2002
Posts: 5,540

Echo("</td></tr><tr><td><b>Player Style</b></td><td>\n");
Echo("<select name=\"color\">\n");
Echo("<option value=\"\">---Please Select---</option>\n");
Echo("<option value=\"Style type: \"CQB\"\">CQB</option>\n");
Echo("<option value=\"Style type: \"GUNNER\"\">GUNNER</option>\n");
Echo("<option value=\"Style type: \"SNIPER\"\">SNIPER</option>\n");
Echo("<option value=\"Style Type: \"MEDIC\"\">MEDIC</option>\n");
Echo("</select></b></td><td>\n");
Reply With Quote
  #5  
Old 01-25-2004, 04:31 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,922

Re: php problem

Stop php and start it again after html output..

<?
$somephp="yes";
?>
<html>
<?
$somemorephp="yes";
?>
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #6  
Old 01-25-2004, 04:45 PM
spinal is offline spinal
[Insert Title]

Join Date: Jul 2003
Posts: 451

re:

ok, thank you both
__________________


Gaming Rig

AMD 64 3200+ venice skt 939
Akasa ak-913 Evo 33
Abit an8 fatal1ty nforce 4 ulutra
OCZ 1gb pc3200 dual channel Platinum
Ledtek geforce 6800ultra 256mb ddr3
Seagate barracuda 160gb
Plextor px-716a
on-board 5.1 sound
Logitech X-530 surround sound

Last edited by spinal; 01-25-2004 at 05:03 PM.
Reply With Quote
  #7  
Old 01-26-2004, 09:30 AM
SilentTrigger is offline SilentTrigger
-1PARA-

Join Date: Sep 2002
Location: Sweden
Posts: 3,972

$dollar = "</td></tr><tr><td><b>Player Style</b></td><td>
<select name=\"color\">
<option value=\"\">---Please Select---</option>
<option value=\"Style type: \"CQB\"\">CQB</option>
<option value=\"Style type: \"GUNNER\"\">GUNNER</option>
<option value=\"Style type: \"SNIPER\"\">SNIPER</option>
<option value=\"Style Type: \"MEDIC\"\">MEDIC</option>
</select></b></td><td>"

Easyer then haveing to write echo tag, and this way a specific thing can be called instead of everything inserted at once as in BBs post and Ps post. Just include one config file with all different kinds of veribels and then do as above and then call for ex: $dollar ex: echo $dollar;
__________________
-1PARA-AlexKall

My photography website



Reply With Quote
  #8  
Old 01-27-2004, 12:27 AM
Surge is offline Surge
Registered User

Join Date: Jan 2002
Posts: 265

Quote:
Originally posted by SilentTrigger
$dollar = "</td></tr><tr><td><b>Player Style</b></td><td>
<select name=\"color\">
<option value=\"\">---Please Select---</option>
<option value=\"Style type: \"CQB\"\">CQB</option>
<option value=\"Style type: \"GUNNER\"\">GUNNER</option>
<option value=\"Style type: \"SNIPER\"\">SNIPER</option>
<option value=\"Style Type: \"MEDIC\"\">MEDIC</option>
</select></b></td><td>"

Easyer then haveing to write echo tag, and this way a specific thing can be called instead of everything inserted at once as in BBs post and Ps post. Just include one config file with all different kinds of veribels and then do as above and then call for ex: $dollar ex: echo $dollar;
nice coding skills st. that's the way I code most of my stuff anymore
__________________
Squad Tag Generator
Take the guessing work out of making you squad tag.
unavailable for re-design
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Page Problem Webviper2006 Web design and Programming 7 02-01-2006 08:45 PM
MySQL Problem or PHP? Webviper2006 Web design and Programming 3 12-26-2005 12:17 AM
PHP-NUKE and PHP ~BLÃÐE~ phphq.Net Forums 9 01-19-2005 06:49 AM
php/mysql problem need help G.I.JOE*MFA* Web design and Programming 3 02-09-2004 05:20 PM
<?PHP Problem ?> Se7eN Web design and Programming 4 08-02-2003 08:11 PM


All times are GMT -5. The time now is 06:37 PM.




Powered by vBulletin®