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 Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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:
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?
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.
Blank Window After If Else Statement To Check Submit
I am attempting to use an IF statement to see if the submit button was not pressed display a form. That works. The ELSE part means that the submit button has been pressed so add the data to a MYSQL table. The window is blank after the submit button is pressed. I looked at the table and no information is transferred. I put an echo statement and still no results. Why is the ELSE statement not executing? Code:
Display Values Of The Form Inside The Table On The New Page
I am generating data from database and displaying it inside input text boxes (for users to make some changes). What I need to do is when user presses "submit" button display all of the results inside the table on the new opened page. How can I do it?
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:
Login Page Produces Blank Page
What I get when I enter username/password and hit submit is a blank page and the URL never changes. In other words, the login page is 'index.php' and when submitted it should redirect to 'admin.php'. Instead the url/address stays at 'index.php' and the page turns completely blank. In the previous thread, the problem turned out to be some missing indicator to the md5 encrypted password. Well, in this version, that's there! In fact, I used the ending scripts for that project in creating this project. So, why it won't work is a real mystery. Code:
PHP Contact Form--blank Subject When Form Is Sent
I have a contact form, which has a subject field (the subject of the email that is sent to me), and when the form is submitted, the subject is not being sent. Instead, I just get a blank subject. Code:
OOP Page = Blank
OOP – page does not display I need your keen eyes to figure out what is happening here I have an OOP script that works well on two local test servers One runs a slightly older PHP, the other one the last PHP just before release of PHP5, in both cases it runs with Reg Glob off, as it should How is it built: One) A class that reads a template, sets values, and sends info to a browser. That class I have used many times and I know it does not cause any trouble Two) a templates Using the following <!--{PROD_1}--> no problems here! Three) the main page << require_once ("../DB conn etc..."); // Include the configuration file. require_once ("../classes/the class I mentioned in “One”.class"); // Include the class. $id=1; $page = again the “One” class ("../templates/main_template_products.inc.php"); // Create an instance. $content_1 .= '' include "../includes/prod_1.inc.php"; $page->SetParameter("PROD_1", $content_1); and my include file <? $conn = db_connect(); $sql= "select prod_1 from XXXXX where id=$id"; $result = mysql_query($sql,$conn); while ($new_content=mysql_fetch_array($result) ){ $content_1.= $new_content[prod_1]; } ?> I am pretty sure that the scripts has no fault. It works on another production server. So what can go wrong. Up to the point of getting a full blank page that in “view source” shows 100% of nothing! I know the DB conn fine since I can edit it via my CMS using the same db conn function. Will that be a server setting? It runs with reg glob on and safe mode on.
PHP Blank Page.
I posted earlier about this, a blank php page. I've enabled logging ALL in the php.ini, but nothing. If I change the name of the db in the include file, I get an error message, so I guess this means it's connecting to the mysql db. I've included the first couple lines of code for this page: index.php <?php session_start(); require_once('inc/db_config.inc.php'); $conn = db_connect(); $sqlsu = "SELECT * FROM subjects ORDER BY ID"; $ressu = mysql_query($sqlsu, $conn); if (mysql_num_rows($ressu)) { while ($qry = mysql_fetch_array($ressu)) { $cat = stripSlashes($qry['cat']); $resns = mysql_query("SELECT * FROM questions WHERE test LIKE '$cat'", $conn); $numcat = mysql_num_rows($resns); inc/db_config.inc.php function db_connect() { $result = @mysql_pconnect('localhost', 'root', 'password); if (!$result) return false; if (!@mysql_select_db('quiz')) return false; return $result; } ?>
Getting A Blank Page?
When I try to run a PHP script of mine, I get a totally blank page. I've tried to put HTML at the very beginning of it, but even that does not show up. I don't see anything wrong with it either. Basically there are two header requires, and then some code that reads a database, and then a few more requires.
Blank Page?
I hve index.php setting two session variables when you login. But when i put session_start(); on any other page to get the variables, it leaves me with a blank page. What could be causing this?
Blank Page
I tested this php form, and it worked on 2 out of three computers, all of which were on different networks. The one that didn't work stalled after I hit submit . . . all I got was a blank page . . . no error messages or anything. This happened whether it was on a PC or Mac, in Firefox, or IE. Any ideas what could be causing it? Code:
Submit/Approve/Display Content In Database In PHP?
I want a page where users can submit an image, text, and links and then what is submitted goes to an administration page where such submitted can be approved or declined. And then another page where all the things that have been approved go into a table where the image, text, and links are displayed in a numbered fashion. Here are some picture examples of what I mean: Code:
Blank Page / Timeout
My website consumes an XML web service using SOAP to handle the requests and responses. If the response is larger than a certain size, i get nothing back and my browser shows a blank page with nothing in the source code. I do get a result if the response is smaller so the request code seems to be working. My php.ini files includes: max_execution_time = 300 max_input_time = 300 memory_limit = 128M Error Reporting is E_ALL - i dont even get any error messages when it does fall over. Are there any other settings that i should try to let the server handle a larger response?
Debugging Blank PHP Page.
How can I debug a blank PHP page? I've turned on all logging in my php.ini, bu the page just turns blank.
Blank Page Issue
In my website i am facing a issue now . all my forum php pages its showing blank page but other php files its running fine and i am using vb bullitn . do any one have idea why its coming.
Blank Page Is Coming..
I have a problem installing php5 in windows xp. I am getting a blank page while i process the file. if i type localhost the iis page is loading. i created a virtual directory 'php' if i type http://localhost/php means it is showing all the files in the directory but if i click the file a blank page is coming. can anybody give me a solution to resolve this.
PHP Page Is Blank For Newbie
phpinfo.php works just fine . php intro pages work just fine too When the code below is posted the page appears blank does some one have any ideas why a page will appear blank.
Displaying Just A Blank Page??
I have commented out a lot of my code and have realised that the code below is what the problem is. I have placed ini_set('display_errors', 'on'); error_reporting(E_ALL); at the very top of the page. No errors are displaying. However I can't see what the problem could be. Code:
Blank Page With [object] On It
I'm using a popup window to INSERT data into a dbase. I pass two variables to the popup, the problem the I'm having is the when I pass the two variable the opener turns blank with an [object] on it with one of the variables on the address bar and the popup with the other. What I want is the the opener not to go blank and the two variable pass to the popup. The code work perfect in macs safari but not in microsoft explorer. Here's the code:
Search Problem, Blank Page
I have a simple search on my site. It searches through by database of products by keyword. I'm sure my coding is wrong. When I submit, I recieve a blank page. I'm using MySQL, Apache server and PHP4. Any help would be great. I've tried changing some code, but still get the same results. Code:
Code Makes A Blank Page?
I upgrade from PHP4 to PHP5.4.2 and now this code doesn't work. I moved the header command up to the top (you can see where I commented it out lower in the code) and now all that show is the header. If I have the header in the original position the page is blank. Code:
Redirect Code Gives Blank Page
I have a simple piece of code designed to register a bookmark in an arrray during a customer site visit. The page should update the arrray and redirect but I get only a blank page. I dont get error messages and this basic code works in a similar application. Code:
Tikiwiki: Tiki-install.ph Blank Page
Just in case anyone searchs on this topic. I kept getting a blank page running a fresh install of tikiwiki 1.9.x tiki-install.ph. Downgrading to 1.8.x gave me a mysql_connect() error which tipped me off to the problem. I was running a fresh load of FC 4 which had a php, php_pear and mysql but not a php_mysql connector. Doing a rpm query should show at least: # rpm -qa | grep php php-mysql-5.0.4-10.5 <== this was missing php-5.0.4-10.5 php-pear-5.0.4-10.5 Solution was to do a "yum install php-mysql". It'd be nice if tiki-install.ph did some sort of test that 1.8.x appears to have been doing.
Ie6 And Lower Loads Blank Page After Login
I've got a script the logs the user, then redirects them a different page. Everything works fine in Firefox and ie7. But anything ie6 or lower, after they click login, it just loads a blank page. Upon refreshing, it loads the page just like its supposed to. I read a little bit about problems with sessions and ie6, but didn't find any real solutions. I know ie is worthless, but is there any real fix for this? Code:
Blank Page Caused By Undefined Index
I upgraded my php from 4.4.7 to 5.2.4 and now the entire website doesn't work. So I am trying to learn PHP and go through the site one error at a time. If you have a idea why the upgrade caused the site to fail that would be great. But in the meantime this is the problem i am stuck on. I get this error now when transferring to a page Notice - PHP Notice: Undefined index: REMOTE_ADDR in c:locationSession.php on line 45. That line has the following code. $GLOBALS["$SessionName"]=md5 (microtime() . $GLOBALS[REMOTE_ADDR"]); Like I said this code worked before the upgrade. Any idea what I can do to fix this problem?
If No Data From Form, Then No Blank Space?
If I have a form (a guestbook for example) and only have some of the fields required, what do I need to do to pass the info to the results/display page if they filled in the data, but not leave a blank space if they didn't? Some sort of collapse table or something?
PHP & Javascript New Window Forces Main Page To Load Blank Screen
I have a problem with a call a Javascript "window.open()" function which is executed as part of a PHP file when a user clicks on an thumbnail image. The PHP is executed which passes some variables to Javascript to execute the new window opening. But as it does this, the main window is loaded which is blank (the browser URL bar shows the URL of the URL passed to the PHP / Javascript script). I would like to keep the gallery page visible in the main page which is where the link originally came from, so the user can see the gallery underneath the "popup" window of the called graphic. I don't know how much of an added problem it is, but the script that generates the whole sites pages is in the root directory, and the gallery HTML is in some seperate sub-directory and is "included" into the page layout (using variables passed on a page click). Gallery script calling the PHP file to execute on image thumbnail click: <a href="php/pics.php?&gal=coll01&picID=01"><img src="img/gallery1/s-dg01.jpg" ALT="Picture 1" width="30" height="69"></A> <a href="php/pics.php?&gal=coll01&picID=02"><img src="img/gallery1/s-dg02.jpg" ALT="Picture 2" width="74" height="69"></A> This passes the variables to the other PHP script which picture to grab. PHP file with the Javascript (pics.php): <?PHP // Section to generate the Javascript pop-up for correct // dimentions of the proposed pop-up. $URL = '..img/gallery1/dg'.$_GET['picID'].'.jpg' print "<script type="text/javascript"> <!-- var Jurl="$URL"; "; ?> window. open(Jurl,"Picture","width=370,height=260,toolbar=no,menubar=no, resizeable=no"); //--> </script>
Include Blank Form Fields When Emailed
I have at least 45 fields in my form and only 8 of them are required namely, NAME, GENDER, DATE OF BIRTH, AGE, HEIGHT, WEIGHT, EMAIL AND CONTACT NO. The rest is optional. The problem is, I dont want to include the blank fields which have not been filled up when the SUBMIT button is clicked. I just want the fields which has been filled up to appear in the mail recipient.
Apache2/PHP4 Compile/startup Fine But No PHP Parsing (blank Page For Phpinfo)
I consider myself well versed with Apache 1.3 and PHP4 - I found drupal and wanted to try it out - I had problems getting it working with Apache2/PHP5/MySQL5 so I downgraded... Note: I did have Apache2/ PHP5 working... I confirmed this via phpinfo output... But now that I removed my original directory containing Apache/PHP, and recompiled from scratch, I get everything to startup and static html is displayd, but phpinfo produces no errors, but no output (literally zero output). Where am i going wrong? This is my environment (forget mysql for the moment as I just want Apache/PHP working first) Apache 2.0.59 PHP 4.4.5 I compile the above using the following: # cd apache # ./configure --prefix=/opt/apache --enable-so --enable-vhost-alias # make # make install # cd ../php # ./configure --with-apxs2=/opt/apachebin/apxs --with-mysql # make # make install And i have the following in my Apache httpd.conf file LoadModule php4_module modules/libphp4.so AddType application/x-httpd-php .php Note - I see in the php.chm document it asks i place the following below the ClearModuleList AddModule mod_php4.c I don't have a ClearModuleList and when I put AddModule in at the end of my httpd.conf, I get the following error: Syntax error on line 1039 of /opt/apache/conf/httpd.conf: Invalid command 'AddModule', perhaps mis-spelled or defined by a module not included in the server configuration I can't recall using AddModule before though. If i exclude the AddModule reference, Apache starts up fine... (log reference below) [Sun Feb 25 14:50:51 2007] [notice] Apache/2.0.59 (Unix) PHP/4.4.5 configured -- resuming normal operations and a httpd -l output shows this; Compiled in modules: core.c mod_access.c mod_auth.c mod_include.c mod_log_config.c mod_env.c mod_setenvif.c prefork.c http_core.c mod_mime.c mod_status.c mod_autoindex.c mod_asis.c mod_info.c mod_cgi.c mod_vhost_alias.c mod_negotiation.c mod_dir.c mod_imap.c mod_actions.c mod_alias.c mod_so.c
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);
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?
Php Based Html Feedback Form Produces Blank Emails
I have a php script to handle feedback on a website that I've built for a colleague. The site was based on a template that uses a flash header and 'iframes'. Unfortunately, when the visitor submits the form data, the email that is sent off does not collect any information from the form. I'll admit I'm quite new to php so this is foxing me. Extracts from the Contact page on the site are provided below plus the php file. Code:
Refresh The Page After Submit
Does anyone know how I can automatically refresh the page after the script is executed ( after user hits submit) and the database is updated, so that the line "The main office is now..." shows the new entry into the db? Thanks.
2 Submit Buttons On 1 Page
I have this code : <INPUT TYPE="Submit" VALUE="Change Password" name="ChangePasswd" TABINDEX=4> <INPUT TYPE="Submit" VALUE="Login" name="action" TABINDEX=3> Problem : When the enter is pressed, the first submit is executed. -> "Change Password". I want that when enter is pressed that the "Login" button is triggered. Is there a possibility to set the enter to "Login" without changing the the place of the buttons??? (if I put "Login" button before "Change Password"; Enter does the "Login", but this is no option)
Page Will Download After I Hit Submit.
I have a registration form that works well. It updates my DB and also sends the new member an email. The problem is that when the member fills out the registration form and hits enter the page does it's thing and then tries to download to the desktop. I get a download window alert that asks what I would like to do with "index.php". What can cause this?
Submit Vs. A Fresh Page Load
I'm developing a page - mostly for the learning experience - that includes a form with several text fields and a submit button. When it's submitted, there is some server-side processing and the output is displayed as part of the same page. (the form's action attribute is set to: "<?php $PHP_SELF ?>"). One of the steps in the PHP script is to check for the existance of a hidden element in the form so that I know whether the page is being sent out as a result of a new request or from the form having been submitted. This all works as expected. When the page is sent out as a result of having been requested from its "home" page, the results are not shown; when the submit button is clicked, the page is sent out with the results shown. Finally my question: when viewing the page with the results shown, if I press <F5> or click on "Refresh", it behaves as if I had clicked the Submit button (that is, it shows the results). I would expect it to return the page as if it was a new request (and NOT show the results).
Page Info Change On Submit
I have a menu on my site that is all pulled out of a MySQL database. So the links actually look like this: <a href="about">About Us</a> And when the user clicks on this link I want the page to go to the database and get the info for "about" and then refresh the page and display the info.
Multiple Submit Buttons On One Page
i have a table created through echo's which display data from the database. The database has multiple items in the thing, so i have lots of rows. Each row has a submit button on it with a different hidden ID, which is $row[0], which is the ID of the items that are being displayed. Displaying all the data and having the submit buttons isnt the problem. The problem is clicking the button. I'm not sure how to manage the data at the end. At the moment I have: Code:
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
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:
|