ilikephp Posted January 19, 2008 Share Posted January 19, 2008 hello, I have this form below for example: I tried it and it works well, but when I put it inside the dreamweaver, I see only the icon: "php" how can I modify inside it if I want? so I can see the buttons, because I used to remove the <?php and include in order to have the form displayed. thanks... <?php include("connect.php"); echo " <form action=?action=form method=\"post\"> Please selcet your age : <input type=\"radio\" name=\"age\" value=10 checked>10 years || <input type=\"radio\" name=\"age\" value=11>11 years <input type=\"radio\" name=\"age\" value=12>12 years || <input type=\"radio\" name=\"age\" value=13>13 years <input type=\"radio\" name=\"age\" value=14>14 years || <input type=\"radio\" name=\"age\" value=15>15 years Now please enter your First name : <input type=\"text\" name=\"fname\" value=\"First Name\"> Now please enter your Last name : <input type=\"text\" name=\"lname\" value=\"Last Name\"> <input type=\"submit\" value=\"submit\"> || <input type=\"reset\" value=\"reset fields\"> "; if($_GET['action'] == 'form') { if($_POST['age'] == "" | $_POST['fname'] == "" | $_POST['lname'] == "" ) { echo " Please fill all forms in "; } else { $age = $_POST['age']; $fname = $_POST['fname']; $lname = $_POST['lname']; echo "Hello ".$fname." ".$lname." Your age is ".$age." Record enterd in the database as well."; mysql_query("update `members` SET first_name='$first_name', last_name='$last_name', age='$age' ") or die(mysql_error()); } } ?> Link to comment https://forums.phpfreaks.com/topic/86755-display-php-files-in-dreamweaver/ Share on other sites More sharing options...
Aureole Posted January 19, 2008 Share Posted January 19, 2008 I don't think what you're asking is possible. You're asking if Dreamweaver can parse your PHP? I think you'd need some kind of special IDE for that. Link to comment https://forums.phpfreaks.com/topic/86755-display-php-files-in-dreamweaver/#findComment-443403 Share on other sites More sharing options...
ratcateme Posted January 19, 2008 Share Posted January 19, 2008 The only thing dreamweaver can do with PHP is write source it cant do anything else. Scott. Link to comment https://forums.phpfreaks.com/topic/86755-display-php-files-in-dreamweaver/#findComment-443409 Share on other sites More sharing options...
ilikephp Posted January 19, 2008 Author Share Posted January 19, 2008 so when I create new forms, I should put at the end the <?php... ? Link to comment https://forums.phpfreaks.com/topic/86755-display-php-files-in-dreamweaver/#findComment-443415 Share on other sites More sharing options...
Aureole Posted January 29, 2008 Share Posted January 29, 2008 so when I create new forms, I should put at the end the <?php... ? I'm sorry, but if you don't know when to put a <?php then you REALLY need to go find some tutorials or something... Link to comment https://forums.phpfreaks.com/topic/86755-display-php-files-in-dreamweaver/#findComment-452102 Share on other sites More sharing options...
ilikephp Posted January 29, 2008 Author Share Posted January 29, 2008 no I know where to put them, But my question is I should remove them in order to display the contents of my text, because If I keep <?php... I only see a php icon. Link to comment https://forums.phpfreaks.com/topic/86755-display-php-files-in-dreamweaver/#findComment-452135 Share on other sites More sharing options...
spikypunker Posted January 29, 2008 Share Posted January 29, 2008 Just use the <? at the start and end of each piece of PHP, then you'll be able to still see the rest of the elements in the design pane. Link to comment https://forums.phpfreaks.com/topic/86755-display-php-files-in-dreamweaver/#findComment-452140 Share on other sites More sharing options...
Aureole Posted January 29, 2008 Share Posted January 29, 2008 Ah sorry, I didn't understand your question. My bad. Link to comment https://forums.phpfreaks.com/topic/86755-display-php-files-in-dreamweaver/#findComment-452191 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.