User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 402,880 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,003 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 3068 | Replies: 2
Reply
Join Date: Oct 2006
Location: UK
Posts: 137
Reputation: MaxMumford is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
MaxMumford's Avatar
MaxMumford MaxMumford is offline Offline
Junior Poster

Myspace submit button hyperlinks _blank

  #1  
Feb 22nd, 2007
Hi all,

Im doing my myspace profile and im using submit buttons in a form and the form action as the url for the page that the user gets taken to, however my external links dont work, and i also want them to be opened in a new window. How can i do this?

This is the current code for a link to my website:

<form id="form2" name="form2" method="post" action="http://www.grafax.co.uk">
 
<input type="submit" name="Submit2" value=".:Grafax:." style="width: 80px" />
 
</form>

The link dosnt work, it comes up with an "internal server error" but is ok wen i try typing in the url, and i also need it to come in a new window but i cannot use javascript! just CSS and HTML!!

Thanks every1!!

Max
Economizerz Hosting
Price Beater Promise

10% Cheaper Hosting, & Double Bandwidth and Web Space
Click here to apply
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2007
Posts: 2
Reputation: xoron is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
xoron xoron is offline Offline
Newbie Poster

Re: Myspace submit button hyperlinks _blank

  #2  
Feb 25th, 2007
i am fairly new to this but i'll give it a go so corrections would be appriciated.

i think the problem is the fact that you are using attributes that you do not need

id/name inless somthing is going to call this (unlikely/wasteful on MySpace) you should remove this.

but the main problem is the method attribute...you are posting sumthing this is ent to the server but there is no information held within the form. THIS IS WHY YOU ARE GETTING THE ERROR!!

so simply remove the method attribute and you are done. the form name attribute will not be nessasary. better to remove it (the removing of the name/id attribute will not affect anithing...its just not needed...if it is then of course leave it).

hope that was useful.
Reply With Quote  
Join Date: Jan 2007
Posts: 2,537
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 111
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Myspace submit button hyperlinks _blank

  #3  
Mar 3rd, 2007
method=post means you want to write new data to a file. You have no file open, and you do not intend to write to a file.
Daylight-saving time uses more gasoline
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JavaScript / DHTML / AJAX Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 2:19 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC