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.





Site Jump During Submission


1)I'am collecting form data on my server from a HTML form.

The next steps Iam trying to figure out is:

2) I want to then go to another site (payment site)

3) then back to my site.

4) extract original data gathered from step 1

I know the simple method would be to go to pay site first then to my site. However I would like my form first! I also do not want to write the data into mysql in step 1. Not until step 4.




View Complete Forum Thread with Replies

Related Forum Messages:
Form Submission (no Button) Using PHP+cURL+ Transfer Control To Other Site
I'm trying to send data using the POST method and also have control of the browser be turned over to the website that's receiving the POST data (note that this is NOT the same as sending the data via POST method and then redirecting to the website after). I need it to work exactly like hitting the submit button on an html form, and I need it to work from PHP. It needs to POST the data to the site and also let the other site have control at the same time.

I've tried a couple of methods using both cURL and an fsocket function, but it seems like in both cases that (1) the data gets sent to the other site first, (2) then my program gets a response back, (3) and then it redirects to the other site afterwards. The data gets sort of POSTed to the other site (I get a 200 response back, and I get info showing it was posted correctly), but since the other site does not get control, it seems to dump (not save) the posted data. Code:

View Replies !
Using Jump Menu
I am using a jump menu to select multiple drop down boxes in a form which are related to the choice you make in the first drop down box.  The problem is that the page reloads and everything before this tag is cleared.  I want to be able to repost the data.  I know that I need to use sessions in my code but I dont know exactly how to use them for this case. Code:

View Replies !
Jump Frame?
I want to make a jump frame (i think is the name), when people click in an image or video, appears a frame in the top (or left), but i want to put an id for each video and image.

There are a simple and better way, but i don´t know how to do, where we can put only the link and it redirects with the frame in php (out.php) like this one (this is an adult link, not spam, only is an example what i want): Code:

View Replies !
JUMP Out Of The Script
"mysql_connect establishes a connection for the duration of the script that access the db. Once the script has finished executing it closes the connection. The only time you need to close the connection manually is if you jump out of the script for any reason. "

http://www.webmasterworld.com/forum88/903.htm

What does he mean by jump out? I used header redirection, is this "jump out", but after header redirection, I always added exit;, does it mean that I need to close the connection.

View Replies !
Unable To Jump To Row
I have a tariff which is atm 44 rows with 15 columns of numbers. Now i am trying to pull as individual price from the tariff based on user input: Code:

View Replies !
Unable To Jump Row 0
I am getting the following error:

Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 2 in /home/content/i/n/n/**/html/tracker/connect.php on line 35

Here is my coding from line 34 on down. Code:

View Replies !
Jump Menu
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<option value="www.site1.com">google</option>
<option value="www.site2.com">metu</option>
<option value="www.site3.com">mynet</option>
<option value="www.site4.com">asa</option>
</select>

above code ; i want to get the selected value and post as named $url into a php code.
How can i call the selected value?

View Replies !
Jump From One Part Of The Script To Another
Is it possible to jump from one part of the script to another part? Meaning the script would jump from line 7 to line 20, ignoring lines 8-19.

View Replies !
Header('Location:') Jump Ignored?
I'm seeing a problem that has me flummoxed. The only thing I can
think of is that I'm violating some rule I don't know about.

I have some code that does some processing and then does a
header('Location: ...) jump to page A on success or falls through to
the jump to page B. This is the code:

if ( mysql_query( 'LOCK TABLES tableX WRITE', $link ) )
{
mysql_query( $q, $link ) ; // store the record
$ID = mysql_insert_id( $link ) ; // save the new id

if ( mysql_affected_rows($link) == 1 )
{
unlock_tables() ;
$_SESSION['ErrMsg'] = 'New ID is ' . $ID ;
header( 'Location: PageA.php' ) ;
$_SESSION['ErrMsg'] .= ' Error: ignored jump' ;
}
else // the store failed
{ error handling }
}
// second chance (for debugging) to do the right thing
header( 'Location: PageA.php' ) ;
$_SESSION['ErrMsg'] .= ' and it ignored it AGAIN!' ;

// and we shouldn't get here at all -- but we do!
header( 'Location: PageB.php ) ;


Unfortunately, as I know from the telltales I stuff into session, the
store works but the interpreter ignores both header calls that would
jump to A and finally jumps to B instead. Unless I'm more tired than
I'm aware, or more ignorant, this doesn't make sense.

View Replies !
Jump To Section Of Same Page
PHP Group,

How can I in PHP, based on a result, move the cursor to a certain location
on the page? I want the same result as Anchor tags in HTML. I want to go to
a certain section of the same page based on a return result in PHP. What
this is for is an order forms page - when a user fills out a section
incorrectly, I want the page to display at that location in the form after
the user presses a submit button.



View Replies !
Jump Out Of A Multidimensional Array?
trying to get out of an array dynamically.

$transport = array('foot', 'bike', 'car', array('test1', 'test2'));
i'm in test2( $transport[3][1] ), how do I go into $transport[3]? Is there a function capable of doing this?

View Replies !
Jump Menu Selected Value
I have a set of 2 menus where the values of the 2nd are dependent on the value selected in the first. Yes, I will (eventually) convert this to a javascript process, but for now I am content reloading the page.

I have created a jumpmenu that reloads the page with the state passed in the url (ie. community.php?state=NY). This determines the values displayed in a second (dependent) menu which then lists the counties available for that state. Code:

View Replies !
Jump To Html Page
I am a php newbe and I am trying to figure out how to simply display an existing html page from my php script. Here is the code I use but I get the normal "output started" errors.

$sql = "INSERT INTO author SET
firstname='$name1',
lastname='$name2',
workphone='$workphone',
email='$email',
loginid='$loginid',
password='$password'";
if (@mysql_query($sql)) {
header("Location: formSubmit.htm"); <--------HERE

View Replies !
Dynamic Jump Menu
I'm looking to create a dynamic jump menu/list menu that will enable me to navigate to a particular record by selecting a value from the list, however the list is dynamically generated from the recordset. Code:

View Replies !
Header - Jump Menu Does Nothing In IE
I have a php header and php footer that are being called into my content pages. In the php header, I have a jump to menu system. The jump to menu works great in Firefox, however, the jump menu does nothing in IE. Have any of you experienced problems with jump to menues in php headers and whatnot?

View Replies !
PHP/MySql Jump Script
I have also read in a affiliate forum (quote below)that putting &afsrc=1 at the end of a link will help click through, how might this also be implemented? "Recently, I put the &afsrc=1 on all my links across my largest sites. Damned if sales have not increased by 10-20% since then. (it has been about 2 weeks at about 13000 clicks a day)"

<?php
$link = mysql_connect ("localhost", "user", "pass");
mysql_select_db ("datebase");
$result = mysql_query ("SELECT link FROM id WHERE number=$locn");
$row = mysql_fetch_array($result);
header("Location: " . $row["link"]);
mysql_close ($link);
?>

View Replies !
Jump Script And Wordpress
I created a very simple jump script, and then edited a page on my blog so the links use the jump script links. I followed a template, and triple checked all the code, so I am sure that part is right. My question is, where do I put the actual .php file so the links in the jump script actually pick up the code and go where they are supposed to go?

I tried a variety of folders (public_html, themes folder, actual theme folder, etc.), but none made the script work. unless I am (quite possibly) missing something else?

View Replies !
Pagination :: Unable To Jump To Row 0
I am running a script to find the "Previous" and "Next" records, the problem is when I get to record 1 I get the error below, same with when I reach the last record in the db.
PHP Code:

Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 18

Here is the script running it, do I need to add to the query? or how can I use IF/ELSE?PHP Code:

<?php
$id = $_GET['id'];
// Retrieve your record according to id
// Display Record
// Links to Previous Records
$query = "SELECT id FROM jokes WHERE category = '$category' AND id < $id ORDER BY id DESC LIMIT 1" ; // For Previous
$result = mysql_query($query) ;
..........

View Replies !
Jump To Letter In Paginated Results
I'm on a project that has paginated results coming from MySQL, say ten records on a page. Let's say that the results contain a song title. What would be the best method for me to write a script that could take a user to whichever page has the first song title starting with B?

Basically, the client wants a list of letters at the bottom that take the user to the page that records beginning with the selected letter begin on. Advice? Am I going to have to loop through the results and count the positions of the letters, and then calculate which page that position would be on?

View Replies !
Unable To Jump To Row 0 On MySQL Result
im making a login program, and i get this error.

"Warning: Unable to jump to row 0 on MySQL result index 2 in /var/www/html/login.php on line 16"

Code:

View Replies !
Jump Menu Call Page
Is it possible to use a jump menu to call a page within a page? To be clearer. I can place an " include ('whatever.php'); " within my page which is fine. But i would like this include to be a variable set by the options within a jump menu. So when I select from the menu the include will swap from its default to the newly selected one. Am I making sense?

View Replies !
How To Create A Jump-menu Using Dreamweaver?
I have 50 names and links I need to show up alphabetically in a jump-menu. I'm pretty green with php and databases. Is there a quick and easy way to accomplish this? I know how to create a jump-menu using Dreamweaver, but how would I set it to read the text file.

View Replies !
Possible To Abort A Script And Jump To The Next Block Of Code?
I was wondering if it is possible to create a button/link that would let a user stop the execution of that piece of code and then resume execution starting with the next 'block' of code. 

View Replies !
Script That Is A Bit Like A Jump Menu But Without The Pull Down List.
I am looking for a script that is a bit like a jump menu but without the pull down list. I want users to be able to enter a post code (4 digits) and then be redirected to a web page based on that post code as each web page is different per code.

the jump menu provided in dreamweaver is almost there but as there are thousands of codes it is impractical to have them drop down.

View Replies !
How I Can Make A List That Acts Like A Html Jump Menu?
how I can make a list that acts like a html jump menu (for a regular list I have to use a "Go" button in order to achieve the desired behaviour and jump menus I cannot use because they work only with links to other pages).

For example,I want such a list filled with questions from my db and when I select one I want to see its possible answers; the page stays the same, only its data differs based on the selection. Or you can have a look at such a jump menu on this website, the one with options for geting to various sections of the forum.

View Replies !
Header Problem - Insert The Info Below And Then Jump Back To A Page.
i want to insert the info below and then jump back to a page. Here is insert and the header statement: PHP Code:

View Replies !
Warning: Mysql_result() [function.mysql-result]: Unable To Jump To Row 0
i want to grab the value of a sql entry. but the thing is, sometimes this value is <NULL>. i thought, no biggy, i'll just have an if statement:

if (is_numeric(mysql_result($query, 0))) {
//do something
} else {
//do something else using mysql_result($category_id_query, 0);
}

however, this doe not work. i get this error: Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 3 is there a way to check to see if mysql_result() is <NULL> without throwing an error.

View Replies !
Warning: Mysql_result(): Unable To Jump To Row 0 On MySQL Result Index
i got this message:

Warning: mysql_result(): Unable to jump to row 0 on MySQL result index 6 in c:inetpubwwwrootDreamWeaverSiteswebadminwa.php on line 2296

for these lines of code:

$sql11="delete from Booking where Booking_Id='$Booking_Id'";
$result11=mysql_query($sql11);.

View Replies !
Converting A PHP Site To A Total Static HTML Site
What's the best way to convert a PHP site to a total static HTML site? You might wanna ask why I wanna do this. Reason: I would like to create an offline version (without server) for demo purposes. Looking at my current PHP site, I am having problem dealing with this issue.

View Replies !
Form Self Submission
I have a form which I am trying to have submit to itself, but change 1 var so that it changes what is printed. how can i do this so it works? Code:

View Replies !
Multiple Submission !!!
I am looking to create a php package for multiple directory submission. Most of the directories are created with phpld so, I want to inject my submission details to all of them from my script !!

View Replies !
Form Submission Nothing Happens?
I have an event calendar. Users submit thier events and then I also allow them to edit thier entries. When they edit an event, that recorded is stored in a different table. I then go in and view the record. When I submit it, it updates the main table.

Below is the code for viewing the edited info. On some records the submit button doesn't work? I click on it and nothing happens? Why would this happen? PHP Code:

View Replies !
Form Submission
I am working on a PHP based web-site which is running a text based war game. So, there are lots of forms users need to submit. One of the form players submits is to ‘attack’ other player (not physically though). For that, player needs to fill out a form (let say this form is on the script1) having two or three input text fields.

After filling out the form user clicks on submit button which then calls (let say script 2) .This script 2 then does all the logic, modifies the database according to who won the attack , calls back the script 1 with the result to be shown to the player. But what is happening right now is that players are abusing the game by clicking the submit buttons or hitting (enter/return) key multiple times(very very quickly), although they are allowed to attack as many times as they want but not before the last attack is done means until they got the result of last attack.

They are clicking submit buttons before the last submission updates the database. Is there any way once the player submits the form, they cannot submit it again until the script 1(containing the form) gets reloaded again with the result. Also each script is a PHP Script. I hope I explained my problem. I heard there is way u can do it with JScript but what if they disable their Jscript.

View Replies !
Submission Form
I have created a form that adds data into different tables in the same DB. Lets say that I want to add a new book title, I type in the data, click submit, the data is submitting, BUT it's submitted into all 4 tables. Code:

View Replies !
Form Submission?
I have a form submission issue. I want to be able to submit this form using the ENTER key on the keyboard or the SUBMIT button. As it is now when I use the button it works fine, but when I use the ENTER key I am sent to the failure page. It is like it is not sending the info to the handle_login.php Code:

View Replies !
Online Submission
I've been assigned the task of adding online submission capability to a college magazine for the authors to submit their files and make adjustments as required by editors and referees. I have done small projects in php/mysql.

View Replies !
Prevention Of Re-submission
the flow of the page is:

order.php->summary.php->submitted.php..

in ORDER.php, user key in their particulars. Once the user click NEXT, the SUMMARY.php will display what the user has entered before he submits the whole form into database. Once he submit, it will call SUBMITTED. php where it process the db. after which SUBMITTED.php will display a msg saying your transaction is successul or failed. k the problem is, if the user click the back button in SUBMITTED.php, he/she will be brought back to SUMMARY.php where the user can re-submit the whole form again. so how do i prevent user from doing tt.

View Replies !
Checkbox Submission
check out my page here. http://magicbean.ca/parties.php This is going to be a page for a casino party business. When I enter party information I need to input how many dealers are needed which is in the row "bj". When a dealer looks at the parties available I want them to check the box to say that they will take that job. When that box is checked I want "bj" to decrement by one. For example, The number "8" is the row "bj", when that form is checked and submitted I want the row "bj" to go down to 7.

View Replies !
Submission Cut-off Time
I am setting up a form site which allows users to place bids on items coming up for an auction. I know how to post the server time on the page, but I need to know if it is possible to set-up the form so once a pre-determined date and time has passed the user will be redirected to a different page. Example: Cut-off time: Tuesday January 9th 6pm User 1 fills out a form at 5pm and is directed to "success page" User 2 fills out a form a 6:15pm and is directed to a "Sorry its to late. Please Call" page.

View Replies !
Submission Approval
I have done a php script that submits an image and data about it into my mysql data base. I want to let members only use this script but as they have the option to submit images I want to keep a close eye on what they submit. I have seen sites where when a user submits data it gets authorized by a user level before being displayed on the main page. Code:

View Replies !
Edit Submission
I want to make an edit submission page, so I did the following, for editsub.php: Code:

<?php
if ($_SESSION['username']){

$sql=mysql_query("SELECT * FROM `portal` ORDER BY id DESC LIMIT 0 , 200 ") or die(mysql_error());
while ($row=mysql_fetch_array($sql)){
$i++;
$id=$row['id']; //Id
$title=stripslashes($row['title']); //Title
$author=stripslashes($row['user']); //Username
$small_image=stripslashes($row['small_image']); //Small icon to go with the submission
........

View Replies !
Trouble With Redirection Upon Submission
I have a poll on my website, but I'm having trouble with the redirect when someone hits submit - it goes to the action php file, and not back to the home like I want them to. Here is my code if anyone can help me out.

<?php
include "connect.php";
$s=$_SERVER["REMOTE_ADDR"];
$ipcheck="SELECT * FROM P_ip where IP='$s'";
$ipcheck2=mysql_query($ipcheck);
while($ipcheck3=mysql_fetch_array($ipcheck2))
{
$ip=$ipcheck3[IP];
}
if($ip)
{
print "Thank you for voting in our poll";
}

else
{
$pollquest="SELECT*From P_question";
$p2=mysql_query($pollquest);
while($p3 = mysql_fetch_array($p2))
{
print "$p3[question] <br>";
}
$pollans="Select * from P_choices";
$pollans2=mysql_query($pollans);
print "<form action='wp-content/themes/matchbox1.1/pollit.php' method='post'>";
print "<input name='redirect' value='/' type='hidden'>";
while($pollans3=mysql_fetch_array($pollans2))
{
print "<input type='radio' name='answer' value='$pollans3[ID]'> $pollans3[answer]<br>";
}
print "<input type='submit' value='submit' value='vote'>";
print "</form><br>";

}
?>

View Replies !
Avoid Multiple Submission
I receive multiple copy of the same form because the client press very fast, many times, the submit button. Is it possible to limit this problem? for example timing the next submit.

View Replies !
Form Value Submission Problems
I'm having a little problem with my php in that when I
submit a value with more than one word from a form, (for example,
"Cineworld Renfrew Street"), only the first word seems to get
submitted, so that when processing it after submission, only
"Cineworld" is available. Is there a way I should be formatting form
values to prevent this?

View Replies !
How Do I Stop A Form Submission
I have the below code. It has a member number input box. Once a member number is entered, it validates the number against a member number in a table. If the member number is a valid number, it will submit the form, if it is not a valid number it redirects the user to a signup page. But it is not working, it is submitting always. Code:

View Replies !
Bulk Submission To Whois
I have a script (php) which allows me to query a whois server and return specific fields.

My question is, how would I submit more than one domain name at a time to my script so that each returned field is then stored into a database file associated with the domain that is queried?

There is approx. 8000 domain names registered thru our registry and we need to update the admin contact emails. The domains are currently stored in a MySql db which can be easily converted to a text file.

View Replies !
Submission Form To Fax Machine, Is It Possible?
I got quite a question here, is it possible that from a submission form on a website the results get faxed throught the webiste directly to a fax machine? I would really appreciate any insight on this concept. And where to start.

View Replies !
The Woes Of A PHP Form Submission
Good evening to the skilled Ladies and Gentlemen of the PHP world. I
am fairly new to all of this but learning quickly. I have run in to a
need to remove blank lines from a form submission after its sent back
to the web server for processing by a PHP document.

I have a textarea that users can paste lines of text in to and submit
them for inclusion in to a database. Every aspect is working
perfectly, except one. No matter what I try, I cannot get rid of
simple blank lines from the form submission.

$theLines = $HTTP_POST_VARS['userSubmitted'];

This variable ($theLines) now contains the contents from the textarea.
I have tried using ...

$theLines = explode("
", $theLines);

and

$theLines = explode("
", $theLines);

But all of the blank lines are still there. If anyone has some
snippet that they would share, I would be very grateful.



View Replies !
Blank Submission Code
on my site i allow multiple files to be uploaded at once , but was wanting to put in some code so that if a black submission (no photos selected) was submitted the code would spit an error and exit Code:

View Replies !
Include Prevents Submission
I have a form which when the submit button is pressed it should go to a different page.... but when i have an include to do with absolutely nothing relating to the page other than to display how much money the user has.. and what level they are it just refreshes the page rather than doing the relocation.

If i remove the include how ever it works . Would any one know what sorta thing causes this so i can check it out ?

View Replies !
Validate Form Submission
How can I check if the contents from a POST form is from my own server? I know there are the $_SERVER variables - but I'm not sure which one to use...

I am at the moment able to have a database page on site1 and post to it from site2 - how can I stop this!

View Replies !
Auto Submission Of Forms
Is there any way to force an html form to be submitted (without user's clicking its submit button) in php? For instance if a user is taking a web based test and the time expires the test should be automatically submitted.

View Replies !

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