Is there any want to change the value of the variable in the following click before calling the javascript function?
<p>
<A href="javascript: alert('Clicked on link!')">Click
here!</A></p>
Thanks.
Alex
Can you write php code inside a javascript function?
How do you pass parameter into a javascript function like the one below?
I want to change the file name "Header.php" dynamically. Can this be done?
<SCRIPT language="JavaScript1.2">
function alert()
{
testwindow= window.open ("Header.php"...
Oop! Spoke too soon.
If, to get 20 records, starting with the first record is . .
Limit 0, 20
Is the second 20 records . . .
Limit 21, 20
or:
Limit 20, 20
I am confuse with the zero base.
Alex
My item file contains too many records to display. I want to limit the display to only 20 records at a time.
In the Select statement, how do I specify the the first 20 records, 2nd 20, etc.?
Thanks.
Alex
When I run the following file name Form.php
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<?php
if (isset($_POST['B1']))
{
echo "Hi ".$_POST['Category']." <br />;
}
?>
<form action="Form.php" method="post">
<p>
<select size="1" name="Category">
<option value='Continuous...
Thank you very much for the heads up.
One more question, in the above example, when I press the submit button, how do I capture the value selected?
Thanks.
Alex
Pardon my ignorance. This is my first dropdown so I need further clarification.
Here is the code of my drop down form in HTML:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<body>
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults"...
I want to put a couple of dropdowns in my webpage.
The first dropdown will be filled with the categories of my products, with the first item "Select product category first!", then followed by the 10 different categories that I retreive from the database query.
Would appreciate some sample...
My first website was written with FrontPage ver 4 six years ago. I have just done a crashed in php/mySQL and rewrote the site with database backbone.
Lot of things have changed in the past 6 years, I am sure my FP4 is totally obsolete.
What would be considered a good and easy to learn and use...
It is nice to know the alternative. I certainly appreciate Jpadie's recommendation.
In my situation, where I have 500 items already, and am adding more as time goes by, I plan to have a frame page where on the left will be the items in that category. The left frame can be scrolled up and down...
Does that mean, for 500 items currently, I have to have an array containing 500 elements? How am I going to keep track easily what array sequence is a certain item within the arrary?
Also, I see the template file name is .tp. Is that an acceptable php file format?
Thanks.
Thanks.
Maybe I am missing the point.
Tell me why I don't have to create 500 somefile.php?
I have 500 items and need to be able to call up 500 webpages, but with only one template file.
Thanks.
Alex
I think there is a distinct difference in what you suggested from the one I obtained from totally another source.
Your method requires the creation of 500 something.php files + one templatex.php because I have 500 different items.
I don't consider posting the questions to multiple sources...
The reason I am looking for passing parameter is that I have over 500 items. I want to avoid writing 500 php files.
I want to write one templatex.php, and when I call the URL, I would just pass the parameter and it will then run a query from within templatex.php and display the information...
I got my answer from another forum. Here it is . . .
When calling the URL:
templatex.php?$desc=IPOD&$name=APPLE&$color=White
you can check that your parameters have content (ie the variable color
is not blank) with
<?php
echo $_GET['$desc'] . " <br>";
echo $_GET['$name'] . " <br>";
echo...
Suppose I have a template php file as follow:
templatex.php
<?php echo $Desc; ?>
Is there any way to past the parameter into the templatex.php file like:
templatex.php/$Desc = 'IPod'
Thanks.
Alex
I have a table named Inventory and have 3 items in it containing the work w069.
I want to run a query to return the three items.
My query: Select * from Inventory where Description Like 'w069'
It doesn't seem to work, returning zero row.
What's wrong?
Alex
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.