Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 11-10-2009, 07:30 PM Form action
Super Talker

Posts: 128
Name: Jose daSilva
Trades: 0
Hi

Can someone help me here?

For example:

In mywebsite.com, I must select a country "spain" (websitespain.es) and choose a certain product with price between 100 euros and 200 euros that must open that range of product in that websitespain.es in other window.

I did this but does not work.

<table width="90%" height="150" border="1" cellspacing="0" cellpadding="0" >
<tr>
<td align="center">


<?
$array_countries = array(
"Finland",
"France",
"Ireland",
"Italy",
"Liechtenstein",
"Luxembourg",
"Spain",
);

?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="10" align="center">
<?
echo '<form action="form_action.php" method="get"><font face="verdana" color="#000000" size="2"><b>Choose a country:</b></font><br><p><SELECT name=country>';
foreach ($array_countries as $key => $value)
{
echo '<OPTION value='.$value.'> '.$value.'';
}
echo '</select>';
?>
</td>
</tr>
<tr>
<td width="10" height="20">&nbsp;</td>
</tr>
<tr>
<td height="10"> <p align="center">

<font face="verdana" color="#000000" size="2"><b>Price range between:</b></font></p>
</td>
</tr>
<tr>
<td height="50" align="center">
<font face="verdana" color="#000000" size="2"><b>&euro;
<input type="text" size="10" />&nbsp; and &nbsp;&euro;<input type="text" size="10" /></b></font>
</td>
</tr>
<tr>
<td height="10" align="center">&nbsp;
</td>
</tr>
<tr>
<td align="center"><input type="submit" value="Submit" />
</td>
</tr>
</table>
josil is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-10-2009, 11:45 PM Re: Form action
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,898
Name: Keith Marshall
Location: Connecticut
Trades: 0
I noticed that <option> does not have closing tags, the from and to range input elements do not have a name, and there is no closing <form> tag
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 11-13-2009, 06:50 AM Re: Form action
Super Talker

Posts: 139
Name: John Davis
Trades: 0
The closed option tag is not mandatory.
You have number of mistakes:
1. There is no closed form tag. It doesn't matter if you have only one form within your page, but if you have a number of forms - then it may be issue.
2. You have to specify name parameter for both of <input type="text" size="10" />. Without this parameter you'll miss them at following page.

Also, please, describe certain problem - what is yor expectation.
__________________
»
Please login or register to view this content. Registration is FREE
- Interactive maps for websites
»
Please login or register to view this content. Registration is FREE
for web developers
MapMaster is offline
Reply With Quote
View Public Profile Visit MapMaster's homepage!
 
Old 11-13-2009, 06:54 AM Re: Form action
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
The closed option tag is not mandatory.
Depending on the DTD of course!
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 11-14-2009, 12:49 PM Re: Form action
Super Talker

Posts: 128
Name: Jose daSilva
Trades: 0
Quote:
Originally Posted by MapMaster View Post
The closed option tag is not mandatory.
You have number of mistakes:
1. There is no closed form tag. It doesn't matter if you have only one form within your page, but if you have a number of forms - then it may be issue.
2. You have to specify name parameter for both of <input type="text" size="10" />. Without this parameter you'll miss them at following page.

Also, please, describe certain problem - what is yor expectation.

Thanks for you reply.

I'm really trying for the first time to make a more complicated action form.

I do need to meke it in a way that selecting the product with a certain price range to get the search it in another web page giving me the list of a x number of that product betweem tha values.

Probably I have to find someone that might do that for me teathenig for the future situations.

But thanks anyway.
josil is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Form action
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15659 seconds with 12 queries