Jump to content

jdock1

Members
  • Posts

    210
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jdock1's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Oh, I didnt even read the last few replies. Those are all great ways that would have probably worked as well. I made it way more complicated than it should have been! But thanks guys, I love this site you guys are awesome.
  2. OMG nevermind!! Topic solved. I forgot to switch the form method from "post" to "get". Thats why it didnt work!
  3. Ok so its still not working. I tried using what HDfilmmaker suggested, but at first obviously php parsed header('Location: http://mysite.com/start.php?offer_pgid=071691&email=$email'); as email being $email instead of the variable data. So, I tried this: <?php if(@$_GET['continue'] == "Submit") { $email = $_POST['paypal_email']; header('Location: http://mysite.com/start.php?offer_pgid=071691&email='.$email.''); } ?> But it still didnt work, its redirecting me to the page but the variable $email is just not registering, it came up blank. WHY!??? WHY CANT I GET THIS!??!!! Its SO simple all I am trying to do is pass that variable to the next page!!! I think its becuse Im using an image input type instead of submit because I have NEVER had this problem before!!! Any help at all is GREATLY appreciated at this point! Thanks guys!!
  4. Idk. Like I said, Im just on some dumb stuff right now. I havent coded in a while and I think I have "writers block"! I really need to refresh my memory with my php reference book
  5. Haha, wow, that could work. I am going to try it out. I will post back here. See, thats what I mean, I would have probably eventually came up with that, but sometimes I just get a complete "block" and can not think of any solution. There is always a solution and alternative way to do ANYTHING in PHP, thats what I love about it! My problem is I was trying to get the variable $email to set before the form is submitted so it will post to a URL with the $email variable in the URL. Im just on some dumb shit right now!
  6. Yeah, I would do that, but I need to capture their paypal email address which they fill out in a form that submits to the next page. For some reason it just isnt registering it. I think it could be because I am using an image as the input type, rather than a submit button. Idk, im really confused, I cant believe i am even having trouble doing this. I have done this so many times before IM just so lost. Its been a few months since I coded
  7. Ok really all I was trying to do is register a variable then redirect to the next page, kind of like a form would do. I guess its a pretty shoddy way to go about it. This is what IM doing, can anybody tell me an easier way to do it? Im not that new to PHP, I have been coding PHP for years now, I am just not a great thinker. This way is new to me because instead of using a form submit button I am using an image instead. So, my problem is I need to register $email which is $email = $_POST['paypal_email']; because the next page will need this variable in the URL. I have a form where the user enters their email and clicks a button to submit the form to get to the next page which is the URL with the email var. Here is the code: <?php $email = $_GET'paypal_email']; ?> <form action="" method="get"> <p><input type="text" style=" width:230px; height:60px; border:2px dashed #D1C7AC; font-size:18px;" name="paypal_email"></p> <p> </p> <input type="image" name="continue" src="images/arw_submit.png" alt="submit" value="Submit"></form></div> <?php if(@$_GET['continue'] == "Submit") { $email = $_POST['paypal_email']; header('Location: http://mysite.com/start.php?offer_pgid=071691&email=$email'); } ?> Thats what I was currently trying to do. Before, I just simply did this: <?php $email = $_POST['paypal_email']; ?> <form action="start.php?offer_pgid=071691&email=<?php echo $email;?>" method="post"> <p><input type="text" style=" width:230px; height:60px; border:2px dashed #D1C7AC; font-size:18px;" name="paypal_email"></p> <p> </p> <input type="image" name="continue" src="images/arw_submit.png" alt="submit" value="Submit"></form></div> And obviously, that didnt work because paypal_email was not registered yet before submitting the form. I think... I just never had this problem before for some reason? I have done this THOUSANDS of times before! Im really not this stupid guys, I just dont know, I cant think right now. Im sure I will kick myself in ass once I get the right code!
  8. Ok I am getting SO ANNOYED with the NOTORIOUS STUPID header error. All I am trying to do is use header location later in the page. There is absolutely NO php before it. None at all. Its just HTML, and at around line 200 I am trying to use header location to redirect to a page. Of course, I am getting the header error. I just dont understand WHY I cant use header location unless its before everything!? Im not even using any PHP except for the header location in that file!! I will never get the whole header thing. I dont care either. I just want to be able to use header location anywhere as long as Im not sending any cookies or anything before it. Is it even possible to use header location unless its on the first damn line!? Thanks guys!
  9. Awesome! Thank you! Very good information to know, I learned alot. I will definitely use this and apply it in the future!
  10. Ok, so now I have that floating to the left, and I put another one right next to it, but I set that to float right. Now, how in tarnation do I allow text to go under it??!! Maybe I am not that great at HTML/CSS!? CSS is a little rusty to me. I still havent learned it all.
  11. Hi! This is probably so dumb of me, but I can write HTML pretty well, but I have never came across this problem before. I am trying to display an arrow image to the right side of a text box that I have on the left side in the middle of the page. I want to position it in the center, to the right. See here http://fastdollar.us See the text box labeled "step 1"? Then you see the arrow underneath it? I am trying to display that to the right center of the text box. It just keeps wanting to display underneath it. I have never ran into any problems like this before! Very odd. Probably some css hack could achieve this? Thanks!
  12. Oh ok. Thanks for the info. So now I have another question. I need to set a cookie after the database operations and the email has been sent. I cant do this because of that, I will get header errors. So how can I do this? Thanks!
  13. Thanks! I figured it out. For some reason I was putting the $link var in the mysql_query instead of the actual $sql variable. I got it working. Thanks guys. And GOD php is such a little girl whining about some whitespace! They need to fix that!
  14. Ok well I deleted the whitespace and now there are no header errors, but now Im getting the custom error message, basically meaning the database was unable to insert anything and the email was not able to be sent. I added mysql_errno and got 1064. Now I cant find any where online what the error is for this code. Does anybody know what the mysql error number 1064 is? Thanks!
×
×
  • 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.