Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





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 Posting Value Of Submit Button
My code here is posting the value of the submit button instead of the option value. I'm not sure what the problem is. Code:

View Replies !
Submit Button - How To Submit One Form And Then The Form Data Goes To Other Sites
I'm trying to find a way how to submit one form and then the form data goes to other sites. Here is an Example below! I got Sites (Main),(A),(B)&(C) I want to fill in the form on site (main) and it sends to sites (A) (B) and (C).

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 !
Pass Form Variables To Second Page And Re-submit Form
This is probably a mixture of PHP and javascript required, but i'm trying to pass form variables entered in page1.php to pass to page2.php and the form to re-submit from page2.php with the values entered in page1.php.

Is this possible, and how would i go about it?

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 !
Submit Page A D Working With $_post Data
I am working with data that I pull from one of tables in my data base and format it into tables for ever entry on my webpage. In each table I place a check box called review (see code below): 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 !
Reload The Same Page With A Form After Submit?
I have a page with a form, and the code to process the form answers, I want the same page/form to just reload when the user presses submit. The only function I have found is that location command. PHP Code:

View Replies !
How To Submit A Form Without New Page Load
I know that using a frame it can be done for AJAX. But
without frame is it possible to submit a form without
new page load?

View Replies !
How To Redirect To A Certain Page When You Hit Submit On A Form?
how to redirect to a certain page when you hit submit on a form? So far, the form writes to a .txt file, i also want it to redirect to a page 'display.php'. Is this possible? if so, how do i do it?

View Replies !
Php Form Redirect To Different Page After Submit
I've created a page with two radio buttons and a submit button. I would like the user to be able to click on radio1 and hit submit and it go to a different page and when they click on radio2 go to another page.

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 !
Display A Blank Page When Form Submit?
I keep getting a blank page when i submit my registration form, because there's no errors being display.

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 !
Form Validation, Blank Page On Submit
Also i am going to be adding the rest of the regex to my other vars, Code:

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 !
Submit Some Order Data On An Ecommerce Site Via A Form
Im a bit thrown by curl. I want to submit some order data on an ecommerce site via a form to a php page, where the data is saved to a database. Then I want to use curl to submit the form data I just saved (and redirect the user) to my secure credit card gateway. Code:

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 !
Difference Between A Person Clicking The Submit Button In A Form Or Hitting The Enter Key To Submit The Form?
Is there a difference between a person clicking the submit button in a form or hitting the enter key to submit the form?

I have a form that gives a blank page when someone doesn't fill out the form and presses the enter key, but gives you an error code and redisplays the form if you click the submit button with your mouse.

View Replies !
If 10 Clients Fill Out A Form On My Page Simultaneaously And Hit Submit
If 10 clients fill out a form on my page simultaneaously and hit submit, how
does my (Apache2.0.50/PHP4.3.8) server exactly ensure each gets 'their own'
completed form returned ? Or is it possible the clients get mixed up under
some conditions?

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 !
Statement To Redirect Users To Another Page When They Submit A Form
I need to use a redirect statement to redirect users to another page when they submit a form. Then on the next page I want to use the POST data, is this possible or is their a better way to do it? At the moment the form has action move() below.

function move()
{
header("Location: community.php");
    exit;
}

View Replies !
Pass The Data From The Post To Another Script Without Click Submit On A Form?
I have an HTML for that I'm using to post data to a PHP validation script. I was then wondering if there is a way to pass the data from the post to another script without have the user to click submit on a form?

View Replies !
Validation Errors From Displaying On Form Page Load Instead Of Submit
creating two forms and they work fine. Problem is that the validation errors display immediately on page load instead of on submit. Here's the full code for the form parsing: Code:

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 !
Create A Form In HTML And A PHP Page For Validating The Data Entered Into The Form
I've tried to create a form in HTML and a PHP page for validating the data entered into the form and adding them into a MySQL database.

However, when i tried them out, it happens that after i press the submit button in the HTML page, it just show a blank page instead of what i expect. I've tried several times, but it is still the same and i don't know what is going wrong. Code:

View Replies !
Click SUBMIT In Order To Submit The Form Instead Of Hitting ENTER.
created a form but when i fill out the form and hit enter it just refreshes the php (php). i have to actually click SUBMIT in order to submit the form instead of hitting ENTER.

View Replies !
Submit Form Does Not Submit And There Is No Change To The Database
I have this code and when i put the amount of tickets you buy and hit Return it does not submit and there is no change to the database, yet when you hit the submit button it works. Code:

View Replies !
Submit Form Without Clicking Submit Button
I was wondering if it is possible to use something like Javascript to make it so you don't have to click the submit button on a form to make it submit, while using php and mysql. e.g. Code:

View Replies !
Can I Pass Data From One Form To Another On One Page.
Can I pass data from one form to another on one page (what i've got is one form that when the submit button is pressed it submits the form in another window, part of my form:
PHP Code:

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 !

Copyright © 2005-08 www.BigResource.com, All rights reserved