Jump to content

swraman

Members
  • Posts

    12
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

swraman's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for the reply. No, my process.php was not redirecting anywhere. It was just a single line, <?php print_r($_POST); ?>. I meant that when I clicked on the submit button to submit the form, I was opening the form in a new tab. This made the $_POST array in the receiving process.php file be empty. If I submit the form in the same tab, it works fine.
  2. Looks like i found out what was going on. The problem happens when I open the link in a new tab. I have neverf seen this happen before - is this a common problem using post vars?
  3. Update: I removed the iframe again and it seems like that was not the issue. Without the iframe, it works about half of the time...which makes no sense to me. Any suggestions?
  4. I typically don't use iframes either, but for this project I have to use access a part of another website which requires users to login. Here is the full code: <html><head> <script type="text/javascript"> function getsome(){ w = document.getElementById('inline').contentWindow.document.body.innerHTML; document.getElementById("src").value=w; } </script></head> <body> <br> <a href="#" onclick="getsome()">Push me</a><br> <form name="form1" id="form1" action="process.php" method="post"> <textarea cols="50" rows="4" id="src" name="src"></textarea> <input type="submit" value="Submit"> </form> <iframe name="inline" id="inline" frameborder="0" scrolling="auto" width="1000" height="300" marginwidth="5" marginheight="5" src="http://website.com/"></iframe> </body> </html> This script is meant to copy the source of a website into the form (done with JS, which works), then submit that form to process.php.
  5. And yes, I am clicking submit. I assume that somehow the server is reading the submitting webpage to be the webpage in the iframe, and not the actual page on my server. Is this the case?
  6. I have an iframe in my form page. When I take it out, it works fine! Is there something wrong with using iframes and POSTing data?
  7. This has me stumped. It was workign fine but 30 minutes ago! Body of my form: <form name="form1" id="form1" action="process.php" method="post"> <textarea cols="50" rows="4" id="src" name="src"></textarea> <input type="submit" value="Submit"> </form> process.php: <?php print_r($_POST); ?> process.php displays: Array() regardless of what I have in the text box.
  8. by the way I am currently using strstr to find the first occurence of the tag, and calling strstr until it returns false.
  9. Hi, Im working on a project where I have to sift through the entire HTML code of a webpage, and extract everything that lies within a certain HTML tag. Essentially, at least as I see it, I need to sort through the entire webpage html source and find all occurrences of a certain html tag. What would be the best way to do this? I want to be sure to do it efficiently as I will be searching through ~2500 lines of html for each time the script is called. Thanks in advance.
  10. Tried retyping it...still not working. I got frustrated (and since Im not extremely farmiliar with Linux) just formatted my entire Ubuntu partition. I reinstalled pgSQL, Apache, and PHP, and it STILL gives me the same error! Is this a more widespread problem? I havent read anything about it anywhere. If this really can't be fixed, I can write a substitute function for pg_escape_string, but I really want to get this fixed. thanks Raman
  11. It is enabled, I can use other pgsql functions. It onnects to a postgresql server fine, its just this function doesnt work. Thanks, any other sugestions?
  12. I get this error when I run a webapp Im trying to use: Fatal error: Call to undefined function pg_escape_string() in ... I know the application works, as Ive been developing and modifying it for a while now. Im trying to get it running on my Linux desktop so editing will be easier. My server setup: -Apache2 on Linux (Ubuntu) -PHP 5.3.2 -PostgreSQL 8.4 PHP IS CONFIGURED to use postgres, I know thats the most obvious thing that stands out with this problem, but I did configure PHP with: './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-pgsql=/opt/PostgreSQL/8.4/' and in phpinfo It has a section for "PostgreSQL Support"; and if I run php -m pgsql is on the list of installed modules. I can use other PG commands, and can connect to a postgres server and such. This function doesnt work though. Im completely baffled. If it makes any difference, I had PHP 5.3.1 installed earlier, and I got this error; then I downloaded/compiled/installed 5.3.2 to see if it fixed it, but it didn't. Thanks, any help appreciated.
×
×
  • 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.