Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. that will affect all .txt files maybe a .htaccess file to redirect something.txt to something_else.php just a thought
  2. i assume $names is an array <?php foreach($names as $n) { mysql_query("INSERT INTO table_name (`Name`) VALUES ($N)"); }?> this is just a basic example
  3. try <?php $directory = "user/"; $file = "index.html"; echo "<form action='webtest.php' method='get' name='url'>"; echo "filename: $file \n"; echo "<input type='hidden' name='url' value='$directory/$file' />"; echo "<label>"; echo "<input type='submit' name='Submit' value='Submit' />"; echo "</label>"; echo "</form>"; echo "<br/>"; echo "<br/>"; ?> pikemsu28 was correct this code is cleaner EDIT: option #2 <?php $directory = "user/"; $file = "index.html"; ?> <form action='webtest.php' method='get' name='url'>"; filename: <?php echo $file ?> <input type='hidden' name='url' value='<?php echo "$directory/$file" ?>' /> <label> <input type='submit' name='Submit' value='Submit' /> </label> </form> <br/> <br/> PLEASE NOTE the $directory has a / and so does the hidden field!!
  4. thats doesn't make sence to me but.. yeah anyways good luck
  5. your only add that code once! (well i guess it depends how you set your up) your have to post some code..
  6. well i have no idea what your dealing with.. how is $cart set ? is it a class ? etc find the first point where $cart is used and post it please did you try echo $cart->total; ?
  7. what about echo $cart['total']; etc EDIT: or echo $cart->total; EDIT #2: we're need to see some code really!
  8. explode <?php // Example 1 $pizza = "piece1,piece2,piece3,piece4,piece5,piece6"; $pieces = explode(",", $pizza); echo $pieces[0]; // piece1 echo $pieces[1]; // piece2 ?>
  9. paypal has an easy one
  10. first thought is large can of worms... why not just use mysql ??
  11. you could use EDIT: same mjdamato
  12. this is a CSS problem CSS padding i believe try changing .header { width: 90%; background-color: white; padding: 10px; border: 1px black solid; text-align:left; } to .header { width: 90%; background-color: white; border: 1px black solid; text-align:left; } from the default.css file
  13. PHP is server side so its basically echo or print you would probably have an XML or SQL menu setup and then echo/print to the screen which is (d)html/CSS
  14. you have 2 config.php files, try changing /config.php to config.php review the file on the top level
  15. why not <?php print ("<td><div align=left valign=middle><input type=checkbox name='{$row['ProductCategry']}[]' value=Y> {$row['ProductCategry']}</div></td>\n"); ?>
  16. i wrote a maze awhile back and had a problem with member double clicking.. my work around was .. erm... i think.. i set a session and set a hidden field to the same value.. ie $lastcode = get the last hidden field code $X = randomsomething; \\<-- generated on each page load if($lastcode != session['code']) { //go back to start; } session['code'] = $x; hidden field = $x; i hope that makes sence
  17. try $query = "SELECT * FROM `news_messages` WHERE `to` ='$to'";
  18. 1# read the rules 2# then post!
  19. was their a question in that last post!!
  20. what code do you have so far! also can to re-phrase the question
  21. your need to post more compleate code,
  22. an array won't work unless you created the array in a php file on the fly (but then again you could just write to a file!)
  23. LOL, coding is the last thing on my mind when drunk.. infact if i have a major project then i try not to drink much (how sad) because i know in the morning all the text would of been set to italics and any code that had errors would of just been deleted!!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.