Parsing Info From Other Page (method POST)
- i want to get some info from the page XYZ to my page. XYZ page has a FORM where you can select DAY, MONTH, YEAR and you get the info about a day you selected.
- now, if i want to grab the info from let's say 20. august 2002 my url will look like this: http://XYZ/file.php?day=20&month=8&year=2002.
- THE PROBLEM is, their form has the POST method, which means, if i want to direct link the 20 august, it will bring me to the FORM page and not to DATE page.
is there any ways to bypass this?? I REALLY NEED THAT INFO?!
View Complete Forum Thread with Replies
Related Forum Messages:
Passing Variables In Frame Page By Post Method
Is it possible to send variables by post method through a submit button to a frames page, and have all 3 pages in the frame pick up the variable using the $_request[var] ?In other words, I click on a submit button. in form action method call index.php the index page has a top, main, and a left frame.how do i get each one of those to receive the variable, when i can only sendit to one page? or is it possible to send it to more than one page, but only action to one page?
View Replies !
How Redirect A User To Another Page And Send Some Variable With The Post Method?
I make a user registration. It contains two/more page. First page is for official purpose. User ID, password and some other official information is in first page and user basic information is in second page. If user enter an user id that already exist in database then a message show the same page to change his user id otherwise page is redirect to second page and send user id, and other variable that was in first page. My Code:
View Replies !
Get Method Works But Not Post Method On PHP 5.0.4 Pages
I am unable to display PHP pages generated by a submission of a form using a POST method. To illustrate this, I created a very simple form called TestForm.php . <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Test Form</title> </head> <body> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table> <tr><td>Name</td><td><input type="text" name="name0"/></td></tr> <tr><td>Age</td><td><input type="text" name="age0"/></td></tr> </table> <input type="submit" name="SubmitMe" value="Submitted" /> </form> </body> </html> I first set the method for the form to GET and the page loaded again after the submit. When I changed the method back to POST, I received a Page Not Found error page. I created another page testform3.php to display the Form Values after submit. I changed the action on the form to testform3.php.
View Replies !
Submit Info With GET Method Behind The Scenes
I need to have a web browser submit a bunch of data to a script on another server without the web browser relocating to that script, usint the GET method. I have tried curl, which seems to work for POST methods. Basically, a user is at the site, submits a form. I need the user to stay on the site, but have the data sent to a remote server with the GET method. I cannot open up a separate window as it will not close back down since the script I'm sending data to doesn't redirect you.
View Replies !
Method Not Allowed The Requested Method POST Is Not Allowed For The URL /rob.html.
THis is my code. What im trying to accomplish is the user fills out the form then when they hit submit it displays what the entered on the samne page but i get this error message when I hit submit Method Not Allowed The requested method POST is not allowed for the URL /rob.html. Here is the code. Any helpis greatly appreciated I cant figure this out at all i have tried so many different combinations. <?php $firstname=$_POST["firstname"]; $lastname=$_POST["lastname"]; $phone=$_POST["phone"]; $mobile=$_POST["mobile"]; $besttimetocall=$_POST["besttimetocall"]; $city=$_POST["city"]; $bizname=$_POST["bizname"]; if (!isset($_POST['submit'])) { ?> ..............
View Replies !
Parsing File For Specific Info.
Ok first, I copied the console text from a game I've been playing. Now I want to make a PHP script that will search through the file line by line and check for 'Death Messages' where I've killed someone or where I've been killed. I want to be able to slice it all up and save who was killer, who was victim, and what the weapon was. Just having trouble coming up with the best way to go about it.. Code:
View Replies !
Help Using The POST Method On PHP
I need to pass a value into a hidden form element by simply clicking on a link, and the value passed should be the visible name of the link itself. Can this be done without Javascript? This php page will be accessed on mobile phones, and Javascript support on them is very limited, so I must deal with it using only PHP.
View Replies !
Php And Method POST
I have just started working my way through the book "PHP and MySQL Web Development" by Welling & Thomson and have failed on the first example in the use of PHP in chapter 1. The example consists of an html Order form passing three parameters to some php script in a second form. Code:
View Replies !
Post Method
Is it true that POST method isn`t allowed while submiting the SID? Can`t I make sth. like that? input type="hidden" value="<?php echo SID?>">
View Replies !
Regarding PHP Post Method
I am a java developer and I am trying to access a webpage that is using a php post method. I am trying to send a query string as a parameter through my code to that certain php page and access the results in the next php page. But, there is some internal java script written in the first php page which is not displayed in the source code of the web page. How do I access that. The query string is transferred to another form and the results are extracted from their database based on the transferred string, which I dont have any access. How do I solve this problem? Has any one ever tried doing such things in php.
View Replies !
Form Post Method
I am new to PHP. have worked in many languages in the past. I have a HTML page which posts back to the mail.php which mails the contents of the input text boxes. I wish to impose some error checking on the HTML form with JavaScript. How do divert to the javascrpit method and then do the POST after all checks OK....
View Replies !
CURL + POST Method
I am currently coding a small script to put data to other website by "curl" this web site cgi script. OK, now let me introduce some backgrounds. The PHP variable of the url of the CGI script on that site is: $url = "http://www.example.com/index.cgi?"; Original CGI on that example.com site read the form data data_a and data_b in <input type=text> and <input type=textarea> by POST method. Two data I need to fill to this CGI script by my PHP script are: Code:
View Replies !
POST Method And Xls File
Normally users compile a php page to introduce some informations, then these infomations are put-in in 10 different array and with POST method passed to a result php page that elaborate and give result for the information just inserted. Now, I want to use a tablesheet in excel to introduce information in more flexibility mode, and I want to use my php result page to perform the same elaboration. Have you an idea how to build the array post variable ?
View Replies !
POST Method And The Quotes.
I've a problem with POST method and the quote. When i get a data in mySQL database, the data is displayed correctly with the quote. But, when i put my data into POST method, all characteres after the quote are not displayed correctly. For example: it's = it'. Why the POST method make this error and how to delete this problem?
View Replies !
405 Post Method Not Allowed
I've searched the web for a solution but to no avail. I have just setup and installed Apache 1.3.20 on windows, and php 4.0.5. Apache is up and running, (In directory F:programsapacheapache) and PHP has been copied to both c:php and F:programsapacheapachephp. I've put the php.ini file in c:windows and made the following changes: doc_root = "f:programsapacheapachehtdocs" extension_dir = "c:php" While in httpd I have added: ScriptAlias /php/ "C:/php/" (uncommented) AddType application/x-httpd-php .php Action application/x-http-php "/php/php.exe" Anytime I try to load a php script I get a 405 error stating that: The requested method POST is not allowed for the URL /password.php.
View Replies !
Form And Post Method
i wrote form.html as below and when i submitting my form open a dialog box and asking for opening welcome.php.if click on ok.open welcome.php in notepad.i didn't get output from welcome.php <html> <body> <form action="welcome.php" method="post"> Name: <input type="text" name="name" /> Age: <input type="text" name="age" /> <input type="submit" /> </form> </body>.....
View Replies !
Php $ POST Method And Checkboxes
I have a MySQL query that returns an array of results. I have a loop that makes a checkbox for every result in the array. When the form is submitted, I need to figure out which checkboxes were clicked. How do I do that? In summation: I can get the value of EVERY checkbox, but I only want the ones that were checked. This is my code that gets the value of every checkbox: $result = count($_POST["id"]); print "$result in the array "; for ($i=0; $i < $result; $i++) { print $_POST["id"][$i]." "; }
View Replies !
Is There A Size Limit On POST/GET Method?
I have a form that posts data to a PHP script which adds a record to a database. One of the fields in the database is a text field and I use a textarea to take the user input. It's been working fine until the other day when someone tried to add a record, the only odd thing was that the textarea had more than 1800 (ish) characters. If we add say 1500 characters the data posts fine and the record gets added. Is there any way of getting around this?
View Replies !
Form Method Post Does Not Work, But GET Does
I have a form, if it uses method get, the variables gets passed. In the response page, when I print out the $_GET array, it prints out all the values passed in from the from. BUT, if I use the form method POST, the $_POST array is empty. I don't understand why it isn't working for $_POST. The register_globals variable is set to Off by the way. PHP Version 4.1.2 Red Hat Linux release 7.3
View Replies !
How To Read The Body Of A POST Method?
I need to read the BODY of a POST. Getting normal POST variables is clear enough, just use $_POST, but the body does not seem to be included in this array. I don't have control over the POST itself (it is a notification from a mobile phone, since you ask), and the format is odd. Rather than: <name>=<value> it is: <code><space><label> eg: 900 Success How can I read the body text? I don't mind getting at the whole content and processing it, if necessary.
View Replies !
Is It Possible To Have Two 'post' Method Buttons On 1 Form?
I need my single form to accept value inputs for inventory products and calculate the total with a "calculate" post method button. Once that is done, I need the customer to send me that form with its values to my email using a "send" post button that uses the mail(). Is this possible? Obviously, both the "calculate" and "send" buttons are on the same form but do different functions. Is it possible to do this one one form? Code:
View Replies !
Session_start And Form With Post Method?
I'm starting a session with session_start. That works fine. I can see the $_SESSION variables from other php pages. However, when I go to an external website and call one of the php pages from a form (method=post), session_start() starts a new session and kills the old one. Can someone tell me why this happens and how to prevent it from happening. My php pages are being called from an external web site. I need to get the session created in login.php to be valid later in "upload.php", eg. Is there some problem with forms and POST causing new sessions to start?
View Replies !
Cache Post Method With Php (search Results)
when you're searching and you click away from the resulting hits page and want to come back, you might get this messae: data has expired from post method .. blah-blah .. could be annoying, because if the pages use sessions the soulution that U'd think of doesn't seem to work, but instead U got2 use this line: session_cache_limiter('private, must-revalidate'); (cuortesy (borrowed it from) of php.net, users contributed section at headers) that person sais the "must revalidate" part is crucial .
View Replies !
Variable On Post Does Not Captured On Function Method
i have a form that passes a value on the form using this.. <form method='POST' action='fpass1_collect.php'> Telephone: <input type='text' name='Tel'> </form> on fpass1_collect.php - $v_tel = $_POST['Tel'] ; and i have a function read_template1(); when i load the read_template1 the values passed on the form does not display, but it run the function but its blank, any ideas?
View Replies !
Post Method Html Headers. Problem
I have an HTML form in which a user enters his/her name and once clicked submitted it should run the process form and show the name user entered. The problem is that the variable "username" is not been passed to my processvariable.php through html headers. Code:
View Replies !
POST Method - Interaction Between 2 Diferents Php Site.
I need to make some interaction between 2 diferents php site. For that, in 1 site I have a php function, it wait for some values on the POST method. It verify the value and return a xml with the result and one unique ID if all is well or the error code. This function I can not modify it and I can not any access, I can only use it. In my side I try to do a form with all values, put in the action the url and submit button, but I was able to catch and work with xml, always the xml is show in the browser, I wan not do that, I can catch the xml, work with the xml and show some information on the browser. (all in the same page)
View Replies !
Safari Interprets 'submit()' As Method 'POST'
I ran into an interesting problem while working on a form: I have a drop down list (think <form><select><option>...) of 'open sessions' which a user can choose from to continue entering data. There is a small bit of javascript which, when the 'onChange' event occurs, triggers a 'submit' which reloads the page and displays the stored values for that session using a session ID variable named, '$existingSessions'. Code:
View Replies !
POST Method Doesn't Work On The Command Line
I am using the php4-cgi Debian package which is based on PHP 4.3.4. I have problems when running php4 on the command line. If I say something like $ php4 index.cgi a number of variables are not initialized. For example, $HTTP_GET_VARS is not set. To get it set, here's my workaround: global $HTTP_GET_VARS; parse_str(getenv("QUERY_STRING"),$HTTP_GET_VARS); But, my real problem is that $HTTP_POST_VARS is not set -- I have no easy workaround for that. If I set the REQUEST_METHOD environment variable to "POST" and CONTENT_LENGTH to some value, the above command ("php4 index.cgi") does not read the post data from the standard input, as one would suppose. Code:
View Replies !
Any Way To Pass Variables To Another Script, Using POST Method
any way to pass variables to another script, using POST method. This is my problem: I have a form to register users, and a php script to process the request. But I may know all user data (from another database), so that I could call my registration php script "automatically" (it is not nice to ask the user to register "twice.
View Replies !
Email Form Does Not Submit Data In Post Method
I have an email which contains a whole form to be submitted to the php code. When I use get method, it works properly, but when I make it to POST method, it does not work. Also, same HTML code as an pure HTML page works properly for POST method. What can be the problem? How can I make the email to submit the data through POST method? My HTML code for email : ==== <form name="form1" method="post" action="getSurvey.php" target="_blank"> ==== My php code : ==== reset ($HTTP_POST_VARS); while (list ($key, $val) = each ($HTTP_POST_VARS)) { ====
View Replies !
Making An Https Request With POST Method In OsCommerce
I have an osCommerce shopping cart on my site, which is an open-source product that uses php. I'm very new to php. I also have an online scheduling application that I outsourced to a third party, which resides on a different server. I asked my scheduling provider if there was anyway I could use my osCommerce php registration for thier registration so I could avoid having visitors to the site register and sign-in twice, once for the store and once to schedule appointments. I was told I would need to create an https request using the POST method. This seemed like pretty standared scripting activity based on my limited knowledge. I did some research and it seems as though cURL is the easiest way to do this. At first my hosting company did not support cURL. I wrote to some osCommerce forums asking for help. I found out that my company did begin supporting cURL and I thought maybe I could use it. I sent some people at an osCommerce forum my phpinfo() file at http://www.thefragrantpath.com/checkcurl.php. After reviewing this, someone at the forum told me my host had cURL enabled but without SSL support, which meant I needed to "install the command line of cURL." I was told without ssh/telnet access I couldn't do this and I don't have ssh/telnet access. I shared the information with someone else on a newsgroup who said they couldn't see why I still couldn't use cURL for my purposes. Figuring I had nothing to lose, I did some experimenting. I don't know exactly what I'm doing, but I'm encouraged just to be getting error messages because maybe that will give me some indication of what to do with some help. In catalog/login.php: ....
View Replies !
Process Simple Form Method=post Forms?
I have done many submit forms on one server and now have built a submit form on a new server which instead of working correctly it hangs on the process page and does nothing. Is there something that they need to be setting on the server to process simple form method=post forms? I have no control over our servers and am not a hardware/plateform person and would love any asssitance in what to look for.
View Replies !
POST Info In Secret
How am i supposed to do this? I want to post info to a script not hosted on my server. I want to do in a way so the user doesnt know where the other PHP script is hosted. Then i want my script to return the remote script content. Heres an example: User submits data. Data is sent to the local script. Local script sends data to remote script remote script processes data Local script reads data on remote server OR remote script sends back processed data Is there anyway i can do this? or is it impossible?
View Replies !
How To Resend POST Info?
I have a form that POSTs to a example.php file... In example.php there is a link Order By ID... When user presses the link it will go to page example.php?order=id ... BUT if I do that, now I will lost all POST information. How do I resend it?
View Replies !
Handling Secure POST Info
I am looking to run all posted data to my pages through a screen of htmlspecialchars and mysql_real_escape_string and then convert $_POST['fieldname'] to $fieldname for use in my coding. Code:
View Replies !
CURL'ing Post Vars And Header Info
Maybe someone can point me to a good tutorial on this, or give me a tip on solving this, being new territory for me. I'm using PayPal for some ecommerce. An HTML form sends my variables to a PHP script I wrote that massages the data, inserts into customer and order tables, etc., then I use cURL to send PayPal post vars. That all works fine, but when the PayPal page loads, the URL of the page remains that of my script, thus all the relative links to images from PayPal are broken.
View Replies !
Php Upload Doesnt POST Any Info In Firefox
I am not sure why but I have had this problem for a while and havent really been able to solve it. A really simple php upload script works in IE but not in FF. FF just comes back to the page as if there is no POST information. For example code below will output when landing on the page, it outputs: Code:
View Replies !
Sessions And Redirects - Send Info From Page One To Page Two.
I have a two part form, each part on a seperate page. I want to send info from page one to page two. Thought ok, I use session variables. The problem is that they don't get sent to the second page. All works fine on my local testing server, but when I go live session varables don't show. Has this something to do with header? Is there another way to get to the second page? Code:
View Replies !
Email Me This Info Page From A Order Confirmation Page?
How do i make a "email me this info" page from a order confirmation page? Basically someone enters some info in a form, then on submission is comes to my email. After submission, i want to have a text area where they can enter an email address to have the info emailed to them if they wish. You can see the page here, you have to enter info first, the email nbox on the second page (process.php) is non fuctional.
View Replies !
Using Form To Post Info And Pic's (Warning: Unable To Fork)
I have created an admin form which allows the admin to update info and pic's to his site but I am having trouble with the update_pic script. When I pass along the form to the php script it gives me the following error message: "Warning: Unable to fork [C:WINDOWSTEMPphp30.tmp /full/path/to/joesauto/images/anime_dvd_icongif.gif] in c:inetpubwwwrootadd_data.php on line 39" This is line 39: exec("cp $picture /full/path/to/joesauto/images/$picture_name"); This is the form I used which was taken from this site. Code:
View Replies !
Execute Ancestor Method Before Descendant Method From Another Method
Is there any way to invoke the ancestor method and then the descendant method? I'm not saying: parent::method(); ... <script for the current method> What I'm looking for is to manually execute the ancestor method (bypassing the descendant method) and then execute the descendant method from 'another' method. All of this execution is done from another method. Reflection class or something?
View Replies !
Php_self - FORM METHOD="POST"
<FORM METHOD="POST" ACTION="<? echo $_SERVER['PHP_SELF']; ?>"> if i have this code in my CallerFile.php is it similar to <FORM METHOD="POST" ACTION="CallerFile.php"> if not may i know the differences if yes which is better?
View Replies !
|