Jump to content

detox

Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by detox

  1. If I take out the delete cookie setcookie('tntcon',''); , the page returns blank with the number 1 in the upper left corner and wherever I move it in the script the error persists identifying the respecting line number. This is the line that executes the script if the condition is met. the above cookie statement delets the cookie if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){ If I could email you the script with all the correct urls displayed in the script I could pay you to get this going for me. I really am at my wits end on this. Thanks for your consideration
  2. It seems you're are implying that the set cookie thing is in the wrong place. But I cannot think of a reason why it needs to be specifically placed high or low in the script. I have read a number of times from different sources that you want the content sent after the headers are sent, but never read only after the cookies are sent. so I am confused at this point. Happy T-day!
  3. It is line one, I have included the files in post #15. I know this because, if the cookie fails the captcha would not validate. Thanks again.
  4. The cookie is working fine. I am still getting the header error "headers already sent by (output started at blah blah blah mailer600.php:1) in blah blah blah() I feel I am pretty close, just need a little help to wrap this up. Thanks!
  5. I tried what you said, look at this file. still the same. tried-this.txt
  6. Hello, I think I have put the script together correctly and cURL is enabled on the server but I am getting this error. Warning cannot modify header information - headers already sent by (output started at blah blah blah mailer600.php:1) in blah blah blah() I attached both files, the form page and the mailer script in hopes that you can but as you will see, there is no space there. I tried eliminating white space, I tried saving the mailer600 page in UTF and have played around with the meta encoding tags in the form file and tried taking off the ?encoding=UTF-8 off of the post url in mailer600.php without any luck. mailer600.php contact.php errorHeader.txt
  7. The previous web guy was using the third party reponse Url in the actual form page. So I wanted to hide it in a separate script and call it using php or curl instead of using the typical form action="httt://www.urletc.com" on the form page, hoping this will be a bit more secure. I have a few other things I may want to try also. Cheers! I will apply it and respond with update. Thanks all!
  8. I don't mean to seem like an un-conceptionalist and I appreciate your help and patience. But I am not 100% what you mean by: 1.) requested URL is expecting and you say: 2.) #### make sure you add them all #### what if I don't? 3.) $response = curl_exec($ch); echo $response; - does echo initiate the transfer to the ext Url? why do I need to echo the response? or at this point could I just echo Thank you for filling out the form or does echo $response need to be there? 3.) If I use Curl and I want the response page to remain at the original domain, would I just echo a thank you gesture from the script above or should it be a separate webpage? 4.) Thank you for providing the non-Curl Version. That made sense to me right away. I would like to use Curl as I never used it before. Is either way better to hide from form filling bots?
  9. I don't know how to call/execute curl_exec. at the end of my script. The browser needs to go to the RetUrl after the code is executed.
  10. mailerBeta1.txt Would you be so kind to check this file and tell me if it's correct or if I am missing something? I will then test it in a live sales environment. notice I did not use $the_results = curl_exec($ch); Thanks!
  11. Hi, I don't see where you made use of/defined $urlcode in the above example also confused about what you said: "page said in response to your POST" usually when something is posted, you don't need to see anything, Just curious. what exactly would the page say? the looped data maybe? I also don't see what part of that code opens the posted url link like the person that posted the first example of Curl $result = docurl('?field1=a&field2=b', 'https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8');
  12. Hi, is Curl part of native php? Also I am not sure that you looked at the file I uploaded. I have about 10 form fields. Is this supposed to loop to then last variable then submit the form through the action url (https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8)? I do not need to echo or print it.
  13. Hi, I need to send form data through this url using post method form action="https://www.testdomain.com/servlet/servlet.WebToWeb?encoding=UTF-8" method="POST except the action url needs to be changed to "mailer.php" I have a captcha script where the form action is sent to a file called "mailer.php" which sends the form data to an email address. I would like to modify this script to be able to send the form data to "mailer.php" and feed the collected form data from a users input to the URL above. I have attached a file where I replaced the mail() with location:header but I have a feeling I am making this involved than it should be. Any help appreciated.
  14. i used the original code below and substituted delete from with update and set i used a defined integer as value for update and it worked good night! if(isset($_REQUEST['555']) && $_REQUEST['555'] =="delete"){ @mysql_query("DELETE FROM frm_BSALE WHERE did=".$_REQUEST['delid']." and pidid ='".$_REQUEST['id']."'"); $_REQUEST['page'] = "protect"; }
  15. I really wish i could edit my previous post instead of writing another reply!! I realize the difference between the two action queries, i sub'd BSALE for frm_bfiles but other than that, it is i beleive exact
  16. NOT WORK = THE DATABASE IS'NT GETTING UPDATED, YET IT GETS UPDATED WHEN USING "DELETE FROM" BUT NOT WHEN I USE "UPDATE' PLEASE DEFINE "ACTUAL QUERY" :-\
  17. MY SQL version: 5.0.67
  18. i HAVE THIS NEAT LITTLE BIT OF CODE the request data is sent from 1st page to second page with the action code if(isset($_REQUEST['555']) && $_REQUEST['555'] =="delete"){ @mysql_query("DELETE FROM frm_BSALE WHERE did=".$_REQUEST['delid']." and pidid ='".$_REQUEST['id']."'"); $_REQUEST['page'] = "protect"; } it gets the request data from: <a href="del.php?id=<? echo $row['pidid']; ?>&555=delete&delid=<? echo $row['delid']; ?>"> This setup works great and deletes the data. I tried to change this to UPDATE THE TABLE INSTEAD of delete BUT IT WONT WORK this is what i did: if(isset($_REQUEST['555']) && $_REQUEST['555'] =="delete"){ $query_add="UPDATE `frm_bfiles` SET `pidtwo`='".$_REQUEST['pidtwo']."' WHERE `did`='".$_REQUEST['delid']."' AND `pidid` =".$_REQUEST['id']; $result=mysql_query($query_add); $_REQUEST['page'] = "protect"; } <a href="del.php?id=<? echo $row['pidid']; ?>&555=delete&delid=<? echo $row['delid']; ?>&pidtwo=5"> Help please, also what is the @? in from of mysql_query used for? Thank you
  19. I need to know how to output SQL row data into an HTML TABLE lets say i have 28 SQL ROWS i want to display 1 piece of data from each row named "name" into 7 HTML COLUMNS where each HTML TABLE COLUMN has 4 rows of data. The solution also needs to be able to increase or decrease the HTML ROWS dynamically when the amount of data is increased or decreased by an unknown amount. Thanks for the help ! - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  20. how to format the row data into an html table lets say i have 30 rows i want to display all data (30 pieces of data, 1 piece from each row) named "name" into 5 html table columns where each column has 100 rows of data also if the amout of data is umknown say something different than 30 i need the formatting to beable to dynamically take care of it++. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  21. I need to view the outputed html of the javascript tags but all i ever see is the script tags again, never the actual source. I received a javascript snippit code from an affiliate site. i cannot paste javascript into my webpage, because the tags get stripped so i would like to be able to paste the script into some kind of editor that displays the output thank you
  22. for some reason only the last loop pass is sticking it doesnt print seperate array values like this array( example1 => example1a, example2 => example2a it just creates the last one: array (example2 => example2a
  23. ok after some review that may not be it either
  24. i thing the cause of the problem is that when the rows are being looped no space is being put between them. Any ideas? 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.