
revraz
Members-
Posts
6,911 -
Joined
-
Last visited
Never
Everything posted by revraz
-
Anyone able to figure out why the second query here isnt working...
revraz replied to jaxdevil's topic in PHP Coding Help
Where is $di value coming from? -
PHP Form syntax written correctly but it doesnt work!
revraz replied to Iroken22's topic in PHP Coding Help
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. -
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>';
-
There is no reason for you to send any CC info to PayPal, they can do all of that through PayPal itself.
-
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.
-
Something is wrong with your double quotes too, you only have 3 sets.
-
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.
-
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.
-
All it does is open the .php file, so that means PHP isn't working on your server.
-
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); ?>
-
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.
-
Give us an example of what you are trying to do. You can do pretty much anything with an Array and MySQL
-
You can have them all in an Array.
-
[SOLVED] Use echo from $Session id to customize index page
revraz replied to atticus's topic in PHP Coding Help
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. -
complete php noobie looking for some assistance
revraz replied to Bethrezen's topic in PHP Coding Help
Also, there are no SQL entries on that page, there is nothing for a hacker to do. -
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.
-
[SOLVED] Using require for DB connection details
revraz replied to james3302's topic in PHP Coding Help
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. -
I'm Blind
-
Why not just use a free FTP program.
-
Use double quotes instead of single and try it.
-
die ("Passwords don't match");
-
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.
-
[SOLVED] PHP 4.4.7 - _POST vars not showing up in generated email
revraz replied to dj_meatwad's topic in PHP Coding Help
If you have access to your PHP.INI, you can change it back. -
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.