Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreMobile Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 27th, 2003, 10:55 PM
GeeZuZz GeeZuZz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Norway
Posts: 103 GeeZuZz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 3 m 18 sec
Reputation Power: 6
Is it possible to create a form submitting to a php file?

I guess it is not possible, but i ask anyway:

I want to create a form, with three fields and a submit button. the variables is submitted to a php file (action="script.php"), and the script returns a text string.

Is this possible to make?

Reply With Quote
  #2  
Old August 7th, 2003, 09:36 AM
SmashWay SmashWay is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Switzerland
Posts: 13 SmashWay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
For example, index.wml:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd" >
<wml>
<card>
<p>
<select name="destination_number">
<option value="test">Here</option>
</select>
<input type="text" name="message" emptyok="false" maxlength="130" size="33" />
<do type="accept" label="submit">
<go href="process_form.php" method="post">
<postfield name="destination_number" value="$destination_number" />
<postfield name="message" value="$message" />
</go>
</do>
</p>
</card>
</wml>

you'll have $_POST["message"] and $_POST["destination_number"] available on the process_form.php script...

Hope it gets you started...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreMobile Programming > Is it possible to create a form submitting to a php file?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway