Jump to content

revraz

Members
  • Posts

    6,911
  • Joined

  • Last visited

    Never

Everything posted by revraz

  1. Where is $di value coming from?
  2. Try to use the META URL redirect instead of Header, chances are you are getting a HEADER error (data is being sent before the HEADER is reached) and the error is suppressed.
  3. I've never used EMBED, I would only guess its either echo '<embed src="logo.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="100" LOOP="false"> </embed>'; or echo '<embed src="logo.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="100"> <param name="LOOP" value="false" /> </embed>';
  4. There is no reason for you to send any CC info to PayPal, they can do all of that through PayPal itself.
  5. Also, you have a (" and then at the end )" So you start the quote after the parenthesis but have the end quote including the end parenthesis. Yeah, that probably is a blank, would be easier to just omit the ID INSERT and omit the '' Value. i don't think that middle set is a double quite, I think the middle set is empty single quotes.
  6. Something is wrong with your double quotes too, you only have 3 sets.
  7. echo "<img src=\"logo.jpg"" alt=\"\" />"; You're not escaping all the Quotes, just use: echo "<img src='logo.jpg' alt='\' />";
  8. Endif? Are you using PHP 3.0? If you're using PHP 4+, use {} around your first IF statement. Also, you may want to start your session first before your require.
  9. For straight HTML, i'm not aware of any other way. You could have someone that does have a PHP server host the .php code for you though and you just call it from your form page. Or search for a service that provides that.
  10. All it does is open the .php file, so that means PHP isn't working on your server.
  11. This is what I did to create a Dynamic Sig. I used XML, so it may not pertain to how you are doing it, but maybe it gives you some ideas. This is actuall a file named mysig.jpg (notice the extension) <?php Header ('Content-type: image/jpeg'); Header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0'); Header('Pragma: no-cache'); $current = ""; $pilot = ''; function start_tag($parser, $name, $attribs) { global $current; $current = $name; } function end_tag($parser, $name) { global $current, $pilot; } function tag_contents($parser, $data) { global $current, $pilot; if ($current == "name") {$pilot[] = $data;} if ($current == "flights") {$pilot[] = $data;} if ($current == "miles") {$pilot[] = $data;} if ($current == "hours") {$pilot[] = $data;} } $parser = xml_parser_create(); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, false); xml_set_element_handler($parser, "start_tag", "end_tag"); xml_set_character_data_handler($parser, "tag_contents"); $document = file_get_contents("pilots.xml","r") or die("Error reading XML data."); xml_parse($parser, $document); xml_parser_free($parser); /* echo $pilot[0]; echo $pilot[2]; echo $pilot[4]; echo $pilot[6]; */ // create the image using your own background $image = imagecreatefromjpeg("FSESig.jpg"); // dimensions of the image used $img_width = 440; $img_height = 111; // set the colours $cool = imagecolorallocate($image, 81, 86, 96); $black = imagecolorallocate($image, 0, 0, 0); $white = imagecolorallocate($image, 255, 255, 255); $red = imagecolorallocate($image, 255, 0, 0); $grey = imagecolorallocate($image, 204, 204, 204); $green = imagecolorallocate($image, 206, 129, 18); $blue = imagecolorallocate($image, 0, 0, 255); // set the font and print text $font = '/home/users/web/b2031/pow.bdcpaging/htdocs/fsesig/arial.ttf'; // now i will create a line with font size 8, with no angle, 10 pixels to the right, and 17 pixels down ImageTTFText ($image, 8, 0, 10, 40, $black, $font, "Pilot... $pilot[0]"); ImageTTFText ($image, 8, 0, 10, 60, $black, $font, "Flights Flown... $pilot[2]"); ImageTTFText ($image, 8, 0, 10, 80, $black, $font, "Miles Flown... $pilot[4]"); ImageTTFText ($image, 8, 0, 10, 100, $black, $font, "Hours Flown... $pilot[6]"); // output and destroy imagepng($image); imagedestroy($image); ?>
  12. He did give you a script to try, look at the code box in his post. Copy/paste that code into a new .php file and run it.
  13. Give us an example of what you are trying to do. You can do pretty much anything with an Array and MySQL
  14. You can have them all in an Array.
  15. You still didn't close the first IF { Also, you are calling SESSION_START (); twice, once at the beginning of the script, then a 2nd time on the 2nd IF Else statement.
  16. Also, there are no SQL entries on that page, there is nothing for a hacker to do.
  17. Nuxy's reply indicates your form can't find contact.php. Check the folder level and name of the file to insure it's correct and check rights to it to make sure it's accessible from your script.
  18. Instead of modifing the PHP.INI for the Include path, you could just enter it into your PHP pages. Another way is using your .htaccess file.
  19. Why not just use a free FTP program.
  20. Use double quotes instead of single and try it.
  21. die ("Passwords don't match");
  22. I don't see where you are even checking Submit: if (isset($_SESSION['correct'])) $correct = $_SESSION['correct']; if (isset($_POST[$correct])) { echo 'you were right!'; } else { echo '...might you be a bot?'; } The first if isset is probably false, so it goes to the second if isset which is false so it echo's Might you be a bot? You need code to check if Submit is set.
  23. If you have access to your PHP.INI, you can change it back.
  24. Reading books and trying things out. Have a goal in mind, what do you want to accomplish? Create a fictious scenario and build a site to make it work.
×
×
  • 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.