form help


Posted on 16th Feb 2014 07:03 pm by admin

this doesn't work. i want the form action to go the location.href of the submit button chosen.. how do i do this?

Code: <?php
echo "<form enctype='multipart/form-data' action='location.href' method='post' name='changer'>

<table width='376' height='76' border='0'>
<tr>
<td>
<font color=white font face=Verdana>Subject: </font><input type='text' name='keywords' value=''>
</td>
</tr>
<tr>
<td align='center'><input type='submit' name='Add Webpage' id='Add Webpage' value='Add Webpage' onClick='location.href="stacker.php"'></td>
<td align='center'><input type='submit' name='Add Topice' id='Add Topic' value='Add Topic' onClick='location.href="uinfo.php"'></td>
<td align='center'><input type='submit' name='Add Image' id='Add Image' value='Add Image' onClick='location.href="uimage.php"'></td>
</tr>


</table></form>"; ?>

No comments posted yet

Your Answer:

Login to answer
264 Like 15 Dislike
Previous forums Next forums
Other forums

redirect standard error and assert (how to?)
How do you redirect standard error and assert?

---

(Why? I am creating an web app and

Sequencing or queuing parallel process
Scenario is as follows
There is one parent process say P1 and 4 child processes say A B C D

help retrieiving results and doing pagination
Having some trouble trying to get the results to show on more than just one page.

What is ha

data type in column definition
Hi,
I create a table with column called "Direction of Travel code ".
The travel codes in t

natcasesort works on one server but not on another
Hi

I have a problem that I was hoping that someone can help me with.

I'm trying to use

Multiple Options for a Single Page
For this example I want to use the Handlers option which is under Fed Admin and all the related codi

Do something every fifth time?
I'm trying to write a loop, but I want it to do something different after every fifth instance. Like

urldecode question
How would I format this line of code properly?

<?php echo urldecode($_GET['Title']); ?

How to set pass login name from htaccess to php
When the user logs into my members page via htaccess, I'd like to retain the username so that I can

mail() problem
Hi Guys,

I've set up a contact email form. It sends the information fine, but it sends it to

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash