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

Local file browser with php
Halo..

So this is what i want to create. I have a folder that i share and it has many movies.

how to timeout $doc = new DOMDocument()->load($url)
I am currently using this $doc->load($url) to fetch an rss feed.
If a feed takes long than

how to remove in php string display
My code is $message="We're looking at developing our website."; $body= "My mess

PHP Game
hy i was wondering what's the best method in order to make some automatic updates in a php game
<

How many users online in the last 24-hours using time()?
I'm fairly new to PHP. I have a MySQL table called 'users' and a field called 'loggedin' which is in

Scheduler problems related to execution of a single BLT by many schedules
Hello all,

We are running several MII instances in a distibuted architecture using a sing

ctype() validation - allowing illegal characters
Hello,
I use ctype() to filter and validate a user form. However, I am trying to allow certain c

PRotect my POST DATA... FROM HTML ATTACKS
I need to like let's say

If a user submit's his Prayer and he put's <meta refresh stuf

Generate multilayered array from string.
ok so i have a string that looks like this:
Code: [Select]blog:edit_all,delete_all|users:edit_all

HTML Email rec'd as Source Code
The code does create and send the email successfully. However, the message shows as html code and n

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