Jump to content

detox

Members
  • Posts

    27
  • Joined

  • Last visited

Posts 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. 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

  3. 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!

  4. 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?

  5. 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');

  6. 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.

  7. 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";	}

  8. I really wish i could edit my previous post instead of writing another reply!!

    :shrug:

     

    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

  9. 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

  10. 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 !  :shrug:

     

    - - - - - - -

    - - - - - - -

    - - - - - - -

    - - - - - - -

     

  11. 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++.

    - - - - - -

    - - - - - -

    - - - - - -

    - - - - - -

    - - - - - -

×
×
  • 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.