POSTing Data To A Page Without Using A Form Submit.
I'm trying to send data to a remote script (a credit card processing
third party) from my site using POST.
Currently, I'm doing it using the ususal form dynamically built with
my values.
This is less than ideal because I want to perform local processing
(updating order status in the local database) and then to proceed to
the remote script, with resultant values, without relying on the user
pressing a [submit] button. Code:
View Complete Forum Thread with Replies
Related Forum Messages:
Posting From A Form Without A Submit Button - How?
Given something like: if ( $_POST['type_save'] == 'Save record to HTGI public DB') { echo '<form method="post" action="populate08.php">' echo '<input type=hidden name="kw_tarea" value='.$tk.'>' echo '</form>' echo '<p>permanent DB updated' } But there's no button to press for a submit. So how do I get this code posted to the action=populate08 ? Without pressing a buttom but just from the code?
View Replies !
FORM SUBMIT PROBLEM - Get The Email To Submit On The Same Page
I would like my form to submit via email on the same page, once the form is submited it will then load the next page yourquote.php I cant however get the email to submit on the same page, it switches almost striaght away to (yourquote.php) and sends the email from that page, i have a loader gif which is meant to load on the form page when submit is clicked which should disapear when the email is submitted only then should it change page.
View Replies !
Posting Form Data And Also Allow To Download Form Data
i have a client that whats to post form data to a database but he also wants users of the script to download it aswell how will i got about doing this i thought about it that i could make it save it into a txt file then echo the download link is there any ideas? because to post it to a txt file it would be posting 2 places is there a way to do this? Code:
View Replies !
Form Data Not Posting
I was reading the forums and have not found the answer and could use some help. I am a novice and am learning how to do this out of neccesity for my non-profit org. I have a database with incidents that we react to during emergencies. I want to be able to have the users call up the record via ID (that works), change the status and/or details and save update mysql. It is just not saving the data. PHP Code:
View Replies !
Posting Form Data
Normally I would do this on the page that processes the form data, using the mail() function. However, I've got a site with a google checkout button on it. What I would like to do is send an email everytime someone clicks on the google checkout link. What I want to be able to do is analyse the number of times orders are submitted and compare them with orders that are processed through google.
View Replies !
Posting Form Data To Two Php Scripts At Once
How do i post the form data to different php files at once. I tried the following code but it doesn't work. the data is sent only to the first php file. <form method="post" action="insert.php" action="mail.php"> Email<input type="text" name="email" value ="" size="20" /> <input type="submit" value="submit" /> </form> Is there a solution?
View Replies !
Posting PDF Form Data To MySQL
I am working on a script that will take information submitted from a pdf form and store the field data to a given mySQL table. I just cant figure out what is wrong with my script. I am able to get the data from the pdf form, and set it as a variable so I can work with it in php. It is displaying the proper data when I echo() it, and I get no mySQL errors. It looks like everything should work, but when I check my database, nothing has been updated....
View Replies !
Posting Form Data To Two Scripts At Once
From: "Norman Peelman" <npeelman@cfl.rr.com> Subject: Re: posting form data to two php scripts at once Date: Sunday, December 17, 2006 12:06 AM <one.1more@gmail.comwrote in message news:1166317725.715320.309280@80g2000cwy.googlegro ups.com... Quote:
View Replies !
Posting Data Into MySQL With A Form
OK, I have been banging my head against this for 2 days. I am new to PHP so please bear with me. I just want to have a user enter 5 fields in a form and post it to my db. I can already search the db and display the data that exists in the db. no problems there, so I know my connection string info is working. Code:
View Replies !
Blank Response By Curl When Posting Form Data
Here is my code, and the problem: $st="...(string to post is formed from different variables read from file)..."; $lngth=strlen($st); $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_URL, $url2); $fp = fopen("example_homepage2.txt", "w"); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,20); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_REFERER, $url); curl_setopt($ch, CURLOPT_FILE, $fp); curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDSIZE, $lngth); curl_setopt($ch, CURLOPT_POSTFIELDS, $st); $page2=curl_exec($ch); curl_close($ch); fclose($fp);
View Replies !
Posting Data To Another Form And Getting Handle Of The Opened Window.
I have posted a form to a PHP file in a new window with target attribute. My problem is that my application should not allow user to post the form again. User should close the window and then only (s)he can post the form again. Can we get the handle of the opened window? If we use window.open then we will get the handle of that window but I am unable to post data with window.open. Any idea on posting data to modal windows. Not as parameters but as $_POST.
View Replies !
Blank Response From Curl When Posting Form Data
Here is my code, and the problem: $st="...(string to post is formed from different variables read from file)..."; $lngth=strlen($st); $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_URL, $url2); $fp = fopen("example_homepage2.txt", "w"); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,20); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_REFERER, $url); curl_setopt($ch, CURLOPT_FILE, $fp); curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDSIZE, $lngth); curl_setopt($ch, CURLOPT_POSTFIELDS, $st); $page2=curl_exec($ch); curl_close($ch); fclose($fp); I tried both with and without POSTFIELDSIZE option, with same result. This code works fine for strings smaller than 800 characters (actually 795 or so), but my regular string is just under 13000 characters. I have uploaded the script to 5 webservers (including my development machine with Win XP , PHP 5 and Apache 2.2.) and it only works on one. The rest return a blank page to stare at on the curl post. Is this some configuration issue, or a curl issue?
View Replies !
SUBMIT The Data In The Same Entry Page
I have one page, which is for data entery. Another page that run the SQL insert and stores the data in the database. WORKING: When the data is entered in data entry page and SUBMIT button is pressed then it takes the user to another page which saves the data in the database and shows the message that the data has been entered successfully. PROBLEM: I'd like to do the data saving by the same page upon data entry after pressing SUBMIT. How can I do this job? I would like to have a messagebox saying that the data has been entered, and reappearing the data entry page blank. Code:
View Replies !
Send Data To A New Page From Submit
I just posted a question to the Javascript area, but was advised to check this forum for PHP... I have no clue where to start as I do not know any PHP (I have seen it, but have never programmed with it). Basically what I want to do is have 3 select lists, where the user selects their birthdate (one select list for day, one for month and one for year), then they click on the submit button, which needs to take them to the relevant page for their star sign. Below is the javascript post I made that has the javascript code to make a javascript pop-up telling the user whattheir star sign is. Code:
View Replies !
Saving Form Data Without Submit?
I could need some advise on a form / form processor I am working on. Normaly I store all form data through php into a class variable for later use. I do this by submitting the form. However I would like to ease the usage of my form and would want each form field to store its' information "onChange". I did this before with "onChange=thisformSubmit()", but that's not acceptable in this case. Is there any other sensible method to save fields individually? maybe using Ajax? Maybe there's a good tutorial somewhere?
View Replies !
Submit Form Data In Particular Encoding
I use some forms with search fields to look up some terms in external dictionaries. However, data need to be send in particular charset (for example, page with external dictionary uses windows-1250, so I need to submit data in windows-1250 charset to work properly). I tried to use form's attribute accept-charset for this - works fine in FF, but not in IE, it seems to ignore this attribute. I also tried to set POST parameters in header manually in desired charset, it would might work, but then the page gets loaded without CSS etc, bare HTML gets downloaded only..
View Replies !
Header - Submit The Data On To Another Form
I am taking all the user input in one form and submit the data on to another form for processing the data. Once the data is processed i use the below code for redirecting it to another page. header("Location: http://www.example.com/folder/mypage.php"); On development server it works perfect, but on my production its not working. What couid be the issue in this?
View Replies !
Save Form Data - How To Temporarily Store The Form Data Of Page 1
i have separated a form into 3 separate php pages as step 1, step 2 and step 3. i would like to know how to temporarily store the form data of page 1 when the user is moving onto page 3 after completing form 2 on page 2?? then retreive and send the data of all 3 forms together in one email to the webmaster when the user clicks submit on page 3 after completing the 3rd form as well as the previous 2.
View Replies !
Auto Submit Form On Page Load
i have a cronjob to run a php file at a certain time of the day. it originally was suppose to run the php mail function, easy enough, right?? but no, the php mail function is not enabled on the server - just my luck. all i need to do is send two values from a database table within an email. i was thinking, i could probably create a form which plugs the two values into fields, and use the mail cgi file to send it that way, but I'd need to submit the form on page load (without someone actually clicking the submit button). I could use javascript, but the cronjob would ignore the javascript. any ideas?
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 !
Undefined Variables On Form To Submit The Data To The MySQL DB
I'm having a hard time trying to get my form to submit the data to the MySQL DB. It submits a couple of the variables I've declared within the PHP Syntax but every variable established within the HTML Form indicates it is undefined. It was working and then all the sudden it stopped working with multiple "Undefined Variables". Also you'll notice this page has lots of lines of code which is mostly JavaScript since PHP does not link to other objects like the two Drop Down Menus you'll see within my code. Does anyone know how I can reduce my lines of Code by replacing the lengthy JavaScript?
View Replies !
Form Submit -> Receive Resulting Stream In Same Page
I am trying to connect an e-commerce system to a payment gateway (located in Hong Kong). The gateway takes values in the form of a simple form submit - however, the results (i.e. authorisation code, status, etc...) are not returned to a separate HTML page (I am not given the option of defining a resulting HTML page to which the results are sent) - but rather I must receive them within the same page through a data stream somehow. Does anyone have an idea how this is done? The example code given by the clearing house is in JSP - so not much use to me. Actually that recommends I send the data through a stream too - but that seems more complicated than is necessary surely? So far, i've done : print "<form name="paydollar" method="POST" action="https://www.paydollar.com/b2c2/eng/payment/payForm.jsp">"; print "<input type="hidden" name="orderRef" value="$cus_no">"; print "<input type="hidden" name="amount" value="$finalp">"; print "<input type="hidden" name="currCode" value="344">"; print "<input type="hidden" name="lang" value="E">"; print "<input type="hidden" name="merchantId" value="xxxx">"; print "<input type="hidden" name="pMethod" value="$credit_type">"; print "<input type="hidden" name="epMonth" value="$credit_expmo">"; print "<input type="hidden" name="epYear" value="$credit_expyr">"; print "<input type="hidden" name="cardNo" value="$credit_no">"; print "<input type="hidden" name="cardHolder" value="$cc_holder">"; print "<input type="hidden" name="remark" value="">"; print "<input type="hidden" name="payType" value="H">"; print "</form>"; .... and within the <body> tag I have onLoad="paydollar.submit();" - so my form is successfull submitting automatically after the PHP script carries out a few other functions locally (i.e. store orders to the database). What stumps me is how to receive the resulting data from within the same page.
View Replies !
Is It Possible To Disable A User From Viewing A Page After They Submit A Form
I have a forgot password form that allows a user to submit their email then a link to a page to reset their password is sent to that email. On this page I have them submit their email and enter in a new password which works fine. But is there any way I could disable this page so the user cant get access to change their password again unless they submit another request to change their password. In other words, I want them to use that link only once and thats it.
View Replies !
Form In Popup Window. On Submit Post To Original Page
Hey i have a page with contains a text field called customer id. the thing is if the user doesnt know this id the they can perform a custome id lookup. to do this the user clicks a button which opens a popup window using javascript, this ne window contains the form containg 2 text fields. when the user clicks the submit button i want the 2 values that where entered to be passed to the original window and the result displayed in the text box (customer id). the thing is when i click submit the page is loaded in the popup window. does any one have any help thanks alot. here is the code for each object. Code:
View Replies !
Build A Page That Takes Form Data, Processes It In A Second Page
I'm trying to build a page that takes form data, processes it in a second page, then sends the user to a third,depending on data processing. On the second page, I am trying to get the page to have some sort of "Loading" message while the backend processes the data, but I can't seem to get anything to work. Does anyone know how I can get that Loading message to display?
View Replies !
Input Form To Sent Data To Another Page
I'm trying to set up an input form so when I enter information using the input form the info I type in is sent to another page and placed in a table. That I already have set up but when I hit the refresh button the data in the table is erased. Code:
View Replies !
Transport Form Data To Next Page
How can I achieve this: page 1 has a form with textfield1, after clicking submit, page 2 is loaded with another form that also contains textfield1. Can the data that is entered in textfield1 on page 1 automatically be put in textfield1 on page 2?
View Replies !
Passing Form Data Through A Page
I'm in the process of creating a new form that stores customer input into a MySQL database. What i'm attempting to do is allow them to fill out their data, and hit 'next' to go on to a file upload form. Upon completing that form and submitting, all information (including their data from page 1) is posted at the same time (so it's all under the same ID). What would be the easiest way to do this? Right now my submit file (submitquote.php) contains the following data (all on one page). Code:
View Replies !
Retaining Form Data In A Page
I have a single PHP page (called "routes.php") which contains a form with 3 dropdown lost boxes and a Submit button. Depending on what the user selects in the boxes, when they click Submit, the script runs off to a MySQL database and pulls down the appropriate data and builds a table in the "routes.php" page. Code:
View Replies !
Transferring Data To Another Page After A Form Process
Quick question: Is it possible to copy some results from a form (via POST) to another page after submitting the form? I'd like to use the results somewhere else later on, but want the form to process normally without the user being forced to redirect to the other page. I've got a vague idea, but I don't know if such a thing would indeed be possible in php or not.
View Replies !
How To Post The Data From A Form To A Web Page Of Other Site
I WANT TO POST THE INFORMATION FROM MY FORM AFTER TAKING INPUT FROM THE USERS TO A WEBPAGE( PAYMENT PROCESSING SITE) WITHOUT VISTING THAT PAGE. I MEAN THE WEBPAGE SHOULD NOT BE DIRECTED TO THAT WEBPAGE(PAYMENT PROCESSING SITE). THE RECEPIENT WEBPAGE (payment processing page) RECEIVES THE INFORMATION THROUGH "GET" METHOD OF THE FORM. SO WE CAN USE "GET" METHOD IN OUR FORM.
View Replies !
|