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

Cannot Display Array from Select Statement + Login question
Hi,
I'm new to PHP but so far so goog. I was assigend a project and I'm very close to completion.

Selecting an "empty" date formated field
How do you select an "empty" date field? I've tried the few ways I can think.
SQL> select

Get keys and values from an array
Hellow,

I have an array $Data with keys and values. With a foreach I can display all the valu

ALV grid with 2 headers
Hi Gurus,

I need to display ALV GRID as below.

Header1

Posting to another Site?
I have software that people install.
When they install it, is there a way to make it post their d

form variables from database help.
Hi all,

I would like to have a form that gives you options based on the results of an mysql q

How to use Substr
I want to check for the word CATEGORY: inside a string which can be CATEGORY: ITEM
and remove the

how do i make a string??
hey guys,
can someone please tell me how to put data from the glob function into a string

2 decima places & How to reload my page
Hello There,

How do i put full-stop (.) after second figure from behind? ie if i have 123456

Question handling xml data
Hello,

I have sucessfull followed this tutorial
http://www.phpfreaks.com/tutorial/handlin

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