Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To Submit Values without a Form
How To Submit Values without a Form? - PHP Script Tips - Processing Web Forms
✍: FYIcenter.com
If you know the values you want to submit, you can code the values in a hyper link at the end of the URL. The additional values provided at the end of a URL is called query string. There are two suggestions on how to use query strings to submit values to the receiving script page:
Here is a simple script page that shows you two hyper links with query strings in different formats:
<?php print("<html>"); print("<p>Please click the links below" ." to submit comments about FYICenter.com:</p>"); print("<p>" .'<a href="/processing_forms.php?name=Guest&comment=Excellent">' ."It's an excellent site!</a></p>"); print("<p>" .'<a href="/processing_forms.php?Visitor,Average">' ."It's an average site.</a></p>"); print("</html>"); ?>
If you copy this script as submit_comments.php to your Web server, and click the first link, you will get:
Number of values: 2 name = Guest comment = Excellent
If you click the second link, the current processing_forms.php will not pick up input values from $_REQUEST properly as showb below:
Number of values: 1 Visitor,Average =
2007-04-22, 4884👍, 0💬
Popular Posts:
What Is the Data Pump Import Utility? - Oracle DBA FAQ - Loading and Exporting Data Oracle Data Pump...
What does address of operator do in background? The AddressOf operator creates a delegate object to ...
How can you write a loop indefinitely? Two examples are listed in the following code: for(;;) { ... ...
What are different properties provided by Objectoriented systems ? Following are characteristic’s of...
Can event’s have access modifiers ? Event’s are always public as they are meant to serve every one r...