hansford
Members-
Posts
562 -
Joined
-
Last visited
-
Days Won
4
Everything posted by hansford
-
If possible. this probably shouldn't be written until sessionstate==4 document.getElementById('div_row').innerHTML = '<textarea id="populate"></textarea>';
-
only one pls will do, otherwise we think you're a pu**y and nobody want to help those.
-
[SOLVED] Help putting html into small php code
hansford replied to Padgoi's topic in PHP Coding Help
yeah tippy thanks so much for letting this moron finally "get it". You will never become a good web programmer having other people do all the work for you. -
[SOLVED] Help putting html into small php code
hansford replied to Padgoi's topic in PHP Coding Help
maybe im not understanding you. You have some information that you want placed bewteen a <div></div>? $content = 'your information'; echo "<div style='blah">" . $content . "</div>"; -
$parsedNumber++ is outside of the while loop;
-
if this statement runs then $tableRowNumber never gets set. ($cookiePassword != $encryptedPass) {
-
[SOLVED] Help putting html into small php code
hansford replied to Padgoi's topic in PHP Coding Help
have php echo out the div -
looks like $tableRowNumber never gets set before entering the loop
-
Creating a new database, is php for me?
hansford replied to ironlynxtk's topic in Application Design
no, you could make the exam all in one page. You select which test from the dropdown menu and the form is set to reload the page and use the $_POST to see which exam was selected and then you'd have to do if conditions so it shows the correct test forms. -
I don't have that problem with php 5.2.5. This script gives me no errors. <?php $key1 = 'name'; $key2 = 'first'; $_SESSION['name']['first'] = 'frank'; example($key1,$key2); function example($key1,$key2){ echo $_SESSION[$key1][$key2]; unset($_SESSION[$key1][$key2]); } ?>
-
Creating a new database, is php for me?
hansford replied to ironlynxtk's topic in Application Design
if you know php, this could be done in one-two days depending on how fancy you wanted to get, but if you're a newbie it might take weeks. The biggest time would be in setting up the forms with all the questions. The key here would be to create an index.php page for the test and then use includes for each exam page. -
How can i update javascript with php?
hansford replied to wwfc_barmy_army's topic in Javascript Help
Well, maybe he doesn't get what we're trying to say or we don't get what he's trying to accomplish. What variables are you trying to change? please post the varibale along with the relevant code thanks -
How can i update javascript with php?
hansford replied to wwfc_barmy_army's topic in Javascript Help
let php store the values in an array and then at the end of your loop do: echo "<script language='javascript'>"; for($i = 0; $i < sizeof($myarray); $i++){ echo "var num" . $myarray[$i] . "=" . $myarray[$i] .";"; } echo "</srcipt>"; now javascript has global vars named like num1, num2 etc.. which holds the values you got from you DB -
if it isn't an object-try this <?php $doc = domxml_new_doc("1.0"); $node = $doc->create_element("Category"); $node->set_attribute("align", "left"); $parnode = $doc->append_child($node); ?>
-
try this it should echo an object $doc = domxml_new_doc("1.0"); $node = $doc->create_element("Category"); var_dump($node); $parnode = $doc->append_child($node);
-
to be on the safe side just put your header right after <?php make sure theres nothing before <?php like whitespace or html tags
-
as far as line 9 and 36 error: i'd echo out and find what the value is before passing it Warning: Cannot modify header information Clear any whitespace in your closing ?> tag currently its like this: $xmlfile = $doc->dump_mem(jgj); echo $xmlfile; ?> needs to be: $xmlfile = $doc->dump_mem(jgj); echo $xmlfile; ?>
-
header("Cache-Control: no-cache, must-revalidate"); you can review it at php.net
-
it grabs the $username and thats all. the problem is here. There is no $_SESSION['rank'] so none of that code is ever executed. Maybe in your DB you can store the username along with who that person is ie: admin,friend then you grab that value and store it in a variable such as $who then we can do: if($who == "friend") { echo include "friendpanel.php"; } if($who == "admin") { echo include "admincontrol.php"; }
-
That why most of us are here to research, to learn.
-
TextPad for me, changes color if I forget to close a string. but after reading this I'll try the others and see if I like them better.
-
yeah just add the resize code. all of the images will be resized in a blink, but not before they're uploaded, but before the next page is fully rendered.
-
you have a session started. somewhere $_SESSION['rank'] needs to be set from some form input or from a check of the database to see their relationship to the user.
-
How about this: function changeAction(ins) {var form1 = document.getElementById('buttons'); if(ins==0) form1.action = "broad_prev.php"; if(ins==1) form1.action = "broad_send.php"; if(ins==2) form1.action = "broad.php" ; if(ins==3){ window.location="http://www.yourdomain.com/yourpage.php"; return; //exits function doesnt allow form1.submit() to get executed } form1.submit(); }
-
I dont see where $_SESSION['rank'] is getting set