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, 5067👍, 0💬
Popular Posts:
What would you use to compare two String variables - the operator == or the method equals()? You can...
What Is Posting? Posting is an event that writes Inserts, Updates and Deletes in the forms to the da...
How can I show HTML examples without them being interpreted as part of my document? Within the HTML ...
How To Wirte a Simple JUnit Test Class? This is a common test in a job interview. You should be able...
How To Retrieve Input Values for Checkboxes Properly? - PHP Script Tips - Processing Web Forms If mu...