Page Redirection - Submit Button
file name: index.php
echo "<form action='swversion.php' METHOD=POST>";
echo "<input type=hidden name='action'value='swlist'>";
echo "<INPUT TYPE=HIDDEN NAME='entry' VALUE='.'>
";
echo "<input type='submit' value='List Software' class = 'formstyle'>";
echo "</form>";
I wanted to add something to this little form code; How do i redirect this index.php, once I click on the submit button it will take to me swversion.php as you could see that my action is doin that. I want that to happen after 5 secs or right away. As soon as hit the button, I want to that page to go back to this index.php again.
View Complete Forum Thread with Replies
Related Forum Messages:
Page Redirection - Allow The User To Click A Button That Sent Them To A New Page
I am writing a little section of a home made shopping basket. I collect information and put it in the basket / db. However, I want to update into a new database the final order as and when I click a button that directs the usuer to Pay Pal. My thought was to allow the user to click a button that sent them to a new page that updates the final order database and then redirects to PayPal the information required for billing without the user having to press another button. Would this be a sensible wat to go about it.
View Replies !
Refresh Page After Submit Button
I have a form inside a PHP page. When user fills user input and hits the submit button, the changes are reflected in the mYSQL database immediately but the PHP page itself isnt updated immediately. If i hit the Refresh button, the changes arent reflected on the page still. But when i go back and come back to the PHP page, the changes are reflected.
View Replies !
Passing Information To A New Page With A Submit Button
I've started creating scripts that allow for one page to have a form that data can be added to. A second page that allows some one else to view all the submissions that have been entered. This page also creates a submit button for each entry. Now what I need to do is make it so that only the entry for which the submit button is connected to is carried over to a third page. At this point using variables, each button gets a different name and value such as, button 1, button 2, button 3, ... When I click any of the buttons all the data from all the submissions get carried over to the new page instead of only the data that that button goes with. How do I write the code on the third page to carry over just the data that the button I click is related to? I'm using a flat file for the data entered into the first page. Glenn
View Replies !
Reload Outside Page OnClick Of Submit Button
I'm using frames to create a "bookmark-like" page. You can enter a URL and it gets added to my database. I have two frames (leftFrame - to display bookmarks entered and mainFrame to show web page). I want the leftFrame to automatically refresh when the user enters a bookmark. As of now you must physically refresh the page to see the results. Here's my code:
View Replies !
Upload File Having Browse Button And Submit Button On Same Form
I am building a form where the user must upload a picture and fill in his details. Now I have a problem as all of this is on the same form. How will I be able to have the Browse button to open the "file browse" dialog and the Submit button to submit the form data. As I believe you can not use GET but must use POST method for form. Is there any means that I can use GET cause I need to get form variables from URL as well.
View Replies !
Passing Radio Button Values To A Submit Button (gif)
How do i pass the value of the radio button to be put of the action that includes the value as part of the URL being submitted - "/ picked.php?pick_num=". Any help with be appreciated. Thanks <form method="post" action="/picked.php?pick_num=".<php? $value ? <input type="hidden" name="cmd" value="0"> <table width="100%"> <td align="center"> <INPUT TYPE='RADIO' NAME='pick_1' VALUE=Ƈ'>Day; <INPUT TYPE='RADIO' NAME='pick_2' VALUE=ƈ'>Week; </td> </tr> <tr> <td align="center"><input type="img src="/images/pick_now.gif" BORDER="0" name="send"></td> </tr> </table>
View Replies !
Submit A Form But Without A Submit Button
I want to submit a form but without a submit button. That's to say, I want that by giving a definite code in a field and then press <ENTER> the form will be submitted. For Example <form name="search_form" method="post" action="search.php"> ..... .... Code: <input type="text" name="code" onKeyPress="if (event.keyCode == 13) {document.search_form.submit()};"> .... .... How can I do it without a submit button?
View Replies !
Submit Button Bug?
I think I've find a very VERY strange bug with form submit buttons (only tested on IE 5.5.). I've got a form in which a password can be changed, which updates a record in MySQl. If you click the submit button, the page works fine. If you press enter whilst the submit button is highlighted, it works fine. However, if you're inside the text field where you're changing the password and you then press enter, it tries to submit the form but doesn't do anything!
View Replies !
The Submit Button?
I've just been looking a different ways to submit forms, however I find that all is not how it should be... In this incarnation, I have some php script that pulls information from a previous form so I can display it before submitting the data to a database, how ever if I do this: Code:
View Replies !
Submit Button
i want to have 3 submit fields,and a submit button,please tell me how to do this.my other question is how to connect this submit button info,to be written in a table in my Database.i have 3 fields in the table in my DB-"number", "comment" and |"date",if this could be of any help.
View Replies !
Get Value Of Submit Button
I have a form with several buttons all named submit with difrent values. form action ="post" I should be able to get the selected button by $a = $_REQUEST['submit']; but nothing. why?
View Replies !
The Submit Button
I have a submit button that when clicked will open a different page (at the same time passing some hidden values). The field value that will be pass to another page is retrieved from table and the value could be an HTML code. But instead of just storing the value to the field (and just display only the button), it display the HTML output.
View Replies !
Submit Button HELP
I've been here 5 hours now. I have a flash web page.. the variable on every input text field is already set to the same name to which I included in the php server file. it sends email...and it directs me to the page index as I want it to. but why are my fields not being sent to me included in the email.. is there something Im forgetting. in flash 8. I have the button setup SEND USING POST..The text fields set up to 0 characters...and expressin is not checked... I tried adding characters to the text fields... but did not make a difference...also..i have a dummy page setup for now. here it is. http://www.mgmediaworks.com/process.html <? $to = $_REQUEST['to'] ; $subject = $_REQUEST['subject'] ; $body = $_REQUEST['body'] ; mail( "sandro@mgmediaworks.com", "Feedback Form Results", $message, "From: $email" ); header( "Location: http://www.mgmediaworks.com" ); ?>
View Replies !
Button Vs Submit
I'm working on a form which input type=submit --> it will work as I want to. (send data to db and go to another page) Here is a problem. I want to use the other button called 'back' to bring data back to previous page. In case the user needs to change the data before submitting. What should i use. I've alredy tried input type=button but it doesn't work. It does nothing.
View Replies !
Submit Button In PHP
<input type="submit" value="Search"/ onclick="this.disabled='disabled'"> But it just greys out the button and does not process the form. Also, is it possible to create a message under the button that says something like "Hang tight. this might take a minute."
View Replies !
Pic As Submit Button
I have this form. And instead of having a submit button I want a picture link. can this be done? <form method="POST" action="auth.php"> <input type="password" name="tvlpss" size="20"> <input type="submit" value="Submit" name="B1" style="font-size: 8pt; font-family: Verdana"> </form>
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 !
Focusing A Submit Button
I am having the hardest time to do a simple action. Many of you know what I am talking about when I say that there are some webpages that do not require you to physically click on the 'Submit' button to send the form. For instance, all you would have to do is click on the username text field and password text field and enter the respective info AND THEN HIT ENTER.(i.e. - I do not click Submit) My page does not currently have that nice little feature. Can anyone tell me how to do it? And if anyone is knowledgeable enough, can you tell me why some pages seem to have that and some don't. Thank you. I have two items of interest: 1) The text field in which I put the information in. Code: <input type='text' name ='search_kernel' value=''> 2) The submit button (which I do not necessarily have to hit in order to submit the form)
View Replies !
Focus A Submit Button
YES I know this is the PHP area. I posted this in the Javascript/HTML area but it appears dead in there. Hopefulyl y'all won't mind. I'm having the damnest time trying to figure out something so simple! I have a button: <input type="submit" value="Confirm" name="confirm_button" class="selectbutton"> This is located at the bottom of the page. I want to add a focus() element to it so that the page automatically scrolls to that button instead of the user having to scroll down for themselves. Any ideas on how I might accomplish this. Have tried a bunch of variations which did not work.
View Replies !
Using $_POST With Submit Button
I wondered if anyone could further advice? In my script I was trying allow the user to enter a userid and password, and when the users clicks the login button. Pass these values passed to a method login_user, and finally display there record. I was hoping to display the record on this page. I would appreicate some advice if my scrips looks corrects? I unsure about the line if(isset($_POST['login'])){ ....
View Replies !
Can You Use An Image For A Submit Button.
I am building a site with PHP and MySQL and it makes extensive use of forms. I have one such form and I want to make the submit button an image.I have tried <input type="image" name="SUBMIT" src="images/butt_continue.gif" alt="Continue" border="0"> but this does not work on pages with PHP in. This particular page is using a self referencing form to update a record in a database. Code:
View Replies !
Form Submit Button
Should be a quickie but I just can't get it to work. I have a form where my users can submit their football picks, when they click submit I would like another sized window to appear (mnf_scores.htm) where they can submit a total score for the Monday night football game each week. From the research I've done I think I need the following: // If this is change picks, output the submit button and close the form if ($userfunc==1) { echo "<p><input type="submit" value="Submit Your Picks!" onclick="window.open('mnf_scores.htm','MNF Scores')"/></p> </form> "; } But that just doesn't seem to work. The submit part works but the subsequent window is not opened.
View Replies !
Image As Submit Button
I have a small issue that I can't seem to figure out. I am busy creating a shopping cart, and I have one button called update cart. The aim of this is that if the user sets the quantityu to 0 or any other number for that matter, the cart will be updated with that quantity. It seems to work perfectly if I use the submit for the input type but not the image type. Can someone please explain this to me. I am attaching the code:
View Replies !
Select Box That Needs No Submit Button
where can I get Java Scipt for making the following: When the select select box value chaenges go to next page with out a submit button. I am searching google and yahoo but not hitong any, may be my search word is no good. I know the comman goes like this: "<select name="select" class="textfield" onchange="call (java script)">" I need the java example.
View Replies !
2 Actions With 1 Submit Button...
I am using a script that checks PageRank and Backlinks and I want to log the URL's submitted and then continue with the operation. I have put in the write to .txt file code in the middle there but it doesn't write the URL to the .txt file Code:
View Replies !
Having To Press Submit Button Twice
I am trying to write an app which updates a database from the chosen person in a selectbox (clientdd) however I was having a problem whereby the page loads then when you press submit the form goes blank - you then press again and it processes the information you entered before. I decided it must have been my messy code so I decided to rewrite it again, I am now experiencing the problem again!! Could somebody please help - I would like the database to update when you press submit - something dodgy is going on!! Code:
View Replies !
Customise Submit Button
well is it possible to customise submit button in php using dreamweaver,i mean can i embed some sql queries inside the submit button so that whenever a person hits that submit button only the required result is obtained..say i put a delete button <input type="submit" name="Submit" value="delete" /> now is this possible to somehow embed in the php code inside this html tag,or do something else so that a database record is deleted??
View Replies !
2 Submit Button In A Form
2 buttons - update and delete as submit button. I cant use the $_POST or $_GET METHOD as it cant use. Before the form is submited, it is required for fields validation. validation will be done by the client side. How can i skip doing with the POST and GET method.
View Replies !
Image Submit Button?
How can I make an image a submit button using the following: <input type="image" src="/images/registermyaccount.gif" value="register" name="register"/> right now it is not submitting like a type="submit" button would.
View Replies !
Not Displaying Submit Button
I hav a musicbox V2 script and i uploaded and installed everything but when my users trying to register for an account the submit button was not coming up..and also in my admin panle some of the links are not working just showing a blank page.
View Replies !
Restricting A Submit Button
I was wondering if anyone new of a way to restrict a submit button on an html form with php. Specifically, I only want the button to be clicked with the mouse for submission rather than with the mouse or by hitting enter. I am having clients accidentally hit enter half way through filling out a form and sending incomplete information.
View Replies !
Submit Button With Image
I used SUBMIT button as a image buttton.I created register page and n this submit button as image src , how to call dis button n php <td class="leftlinks"><img src="images/Submit.gif" name="submit" width="69" height="19" /></td>
View Replies !
$_POST With Submit Button
Is there a way to check if a script like this i working: Quote<form name="" method="POST" action="" enctype="text/plain" id="Form1"> <input type="submit" id="Button1" name="DoCrime" value="Do Crime" style="position:absolute;left:36px;top:56px;width:75px;height:24px;z-index:0"> <? if (isset($_POST['DoCrime'])) { include('UnderBridgeCrimeScript.php'); } ?> because the script "underbridgecrimescript" works on its own but not when included so im thinking its related to this include. Im unsure where the fault lies in this.
View Replies !
Set Length Of Submit Button
I want all submit buttons on my page to be the same lenght, any idea how to do it ? For example: PHP Code: <input type="submit" value="Submit"/> PHP Code: <input type="submit" value="Welcome User"/> I want both buttons to be equal in size.
View Replies !
Submit Button Using E-mail
I've currently creating a web page that has a form, various text fields, radio buttons, and submit button etc. The submit button works and always brings up a dialog box that says: "This form is being submitted using e-mail" and it goes on a little. If you click "ok" on the box it then opens up your default e-mail system, such as outlook express or Mozilla Thunderbird.
View Replies !
Link Instead Of Submit Button, Possible?
I wonder if I can use a link (href) instead of a submit button when I build a html form? <body> <form name="form1" method="post" action="my_file.php"> <input type="submit" name="Submit" value="Submit"> </form> </body> </html>
View Replies !
|